import urllib2 website = "WEBSITE" openwebsite = urllib2.urlopen(website) html = getwebsite.read() print html
到现在为止还挺好.
但我只希望纯文本HTML中的href链接.我怎么解决这个问题?
html python beautifulsoup href hyperlink
beautifulsoup ×1
href ×1
html ×1
hyperlink ×1
python ×1