beautifulsoup - How to search by name attribute? -
i'm trying find input element <input id="telephone" name="telephone">. tried soup.find('input', name='telephone') , didn't find it. soup.find('input', id='telephone') works fine. think problem 'name' has 2 meanings, name of tag , name attribute. so, how can search name attribute?
obviously in example can search id attribute, that's not there in actual predicament.
im not sure wrote.
soup.find('input', name='telephone'); would try use this?
soup.find('input[name="telephone"]'); hope works.
Comments
Post a Comment