>>> for link in soup.find_all(‘a‘):
... print(link.get(‘href‘))
#用于爬取a标签的链接
http://beautifulsoup.readthedocs.io/zh_CN/v4.4.0/
标签:gpo post body int ref a标签 基本 ... 标签
>>> for link in soup.find_all(‘a‘):
... print(link.get(‘href‘))
#用于爬取a标签的链接
http://beautifulsoup.readthedocs.io/zh_CN/v4.4.0/
标签:gpo post body int ref a标签 基本 ... 标签
原文地址:https://www.cnblogs.com/kangdong/p/8489532.html