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

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

html=soup.select("table a")

for k in html:
    print(k.string)
    print(k['href'])

 

posted @ 2018-01-29 00:07  zhaogaojian  阅读(1847)  评论(0编辑  收藏  举报