The following should work
soup = BeautifulSoup(htmlstring)
soup.findAll('div', style="width=300px;")
There are couple of ways to search for tags.
- http://www.crummy.com/software/BeautifulSoup/documentation.html
For more text to understand and use it
- http://lxml.de/elementsoup.html