【发布时间】:2014-07-28 05:34:07
【问题描述】:
import BeautifulSoup
html = """
<html><head></head>
<body>
<a href='http://www.gurletins.com'>My HomePage</a>
<a href='http://www.gurletins.com/sections'>Sections</a>
</body>
</html>
"""
soup = BeautifulSoup.BeautifulSoup(html)
现在我想获取包含关键字Home的链接
谁能告诉我如何使用 BeautifulSoup 做到这一点?
【问题讨论】:
标签: python web-scraping beautifulsoup