I\'m having trouble parsing HTML elements with \"class\" attribute using Beautifulsoup. The code looks like this
soup = BeautifulSoup(sdata) mydivs = soup.fi
Specific to BeautifulSoup 3:
soup.findAll('div', {'class': lambda x: x and 'stylelistrow' in x.split() } )
Will find all of these:
0 讨论(0) 查看其它17个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题