Issue
I can traverse generic tags easily with BS, but I don't know how to find specific tags. For example, how can I find all occurances of <div style="width=300px;">
? Is this possible with BS?
Solution
The following should work
soup = BeautifulSoup(htmlstring)
soup.findAll('div', style="width=300px;")
There are couple of ways to search for tags.
For more text to understand and use it
Answered By - pyfunc
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.