摘要: >>> 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/ 阅读全文
posted @ 2018-03-01 17:25 zzuli风尘 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 保存视频资源 灵活应用split和os,并且养成检错的习惯 阅读全文
posted @ 2018-03-01 00:40 zzuli风尘 阅读(143) 评论(0) 推荐(0) 编辑
摘要: r = requests.get('www.baidu.com') r.request.headers{'User-Agent': 'python-requests/2.18.4', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Conn 阅读全文
posted @ 2018-03-01 00:34 zzuli风尘 阅读(243) 评论(0) 推荐(0) 编辑