【发布时间】:2011-03-05 18:28:33
【问题描述】:
import urllib2
website = "WEBSITE"
openwebsite = urllib2.urlopen(website)
html = getwebsite.read()
print html
到目前为止一切顺利。
但我只想要纯文本 HTML 中的 href 链接。我怎么解决这个问题?
【问题讨论】:
标签: python html hyperlink beautifulsoup href