Python分析网页中的标签

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

你可能感兴趣的:(Python分析网页中的标签)