I\'m having trouble parsing HTML elements with \"class\" attribute using Beautifulsoup. The code looks like this
soup = BeautifulSoup(sdata) mydivs = soup.fi
This should work:
soup = BeautifulSoup(sdata) mydivs = soup.findAll('div') for div in mydivs: if (div.find(class_ == "stylelistrow"): print div