Python分析网页中的<a>标签

soup = BeautifulSoup(html,"html.parser") 

html=soup.select("table a")

for k in html:
    print(k.string)
    print(k['href'])
原文地址:https://www.cnblogs.com/zhaogaojian/p/8372976.html