【发布时间】:2015-09-14 07:14:41
【问题描述】:
尝试用 BeautifulSoup 解析这个 html:
<div class="container">
<strong>Monday</strong> Some info here...<br /> and then some <br />
<strong>Tuesday</strong> Some info here...<br />
<strong>Wednesday</strong> Some info here...<br />
...
</div>
我希望只能获取周二的数据:<strong>Tuesday</strong> Some info here...<br />
但由于没有包装器 div,我很难仅获取此数据。有什么建议?
【问题讨论】:
标签: python beautifulsoup html-parsing