摘要:
>>> for link in soup.find_all('a'):... print(link.get('href'))#用于爬取a标签的链接 Beautiful Soup 4.4.0 文档链接:http://beautifulsoup.readthedocs.io/zh_CN/v4.4.0/ 阅读全文
摘要:
保存视频资源 灵活应用split和os,并且养成检错的习惯 阅读全文
摘要:
r = requests.get('www.baidu.com') r.request.headers{'User-Agent': 'python-requests/2.18.4', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Conn 阅读全文