- 博客(2)
- 问答 (1)
- 收藏
- 关注
原创 猫眼top100电影信息爬虫
代码如下import requestsfrom requests.exceptions import RequestExceptionimport redef get_one_page(url):try:headers={‘User-Agent’:‘Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, ...
2019-10-03 20:34:48
308
原创 初学Python爬虫,遇到代理IP的问题
学习爬虫代理IP时遇到一个问题,代码是这样的import urllib.requestproxy_handler=urllib.request.ProxyHandler({‘http’:‘113.121.39.182’,‘https’:‘163.204.247.41’})opener=urllib.request.build_opener(proxy_handler)response...
2019-09-17 15:53:19
200
空空如也
爬虫为什么只能爬到一部分内容?
2019-10-04
TA创建的收藏夹 TA关注的收藏夹
TA关注的人