【发布时间】:2015-02-22 06:44:05
【问题描述】:
<p>
<a name="533660373"></a>
<strong>Title: Point of Sale Threats Proliferate</strong><br />
<strong>Severity: Normal Severity</strong><br />
<strong>Published: Thursday, December 04, 2014 20:27</strong><br />
Several new Point of Sale malware families have emerged recently, to include LusyPOS,..<br />
<em>Analysis: Emboldened by past success and media attention, threat actors ..</em>
<br />
</p>
这是我想在 Python 中使用 BeautifulSoup 从 HTML 页面中提取的一段。 我可以使用 .children & .string 方法获取标签内的值。 但是我无法在没有任何标签的段落中获得文本“Several new Point of Sale 恶意软件...”。我尝试使用 soup.p.text 、 .get_text() 等。但没有用。
【问题讨论】:
标签: python html web-scraping beautifulsoup