![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python爬虫
python爬虫,python爬虫,python爬虫
__2得很别致
__慢热
展开
-
爬虫:代理池出现异常的解决
最近看了崔大大的代理池 程序运行出了点问题,应该是版本过高的原因。 AttributeError: 'int' object has no attribute 'items' 解决方法: 代理池异常 碰到还有其他的; File "I:\charon\mydemo\python\test\webspider\proxypool\proxypool\crawler.py", line 89, in crawl_ip181 re_ip_adress = ip_adress.findall(html) T原创 2020-09-21 11:35:04 · 171 阅读 · 0 评论 -
爬虫:模拟github登陆
根据崔庆才崔大大的又改了一下。 import requests from lxml import etree class Login(object): def __init__(self): self.headers = { 'Referer': 'https://github.com/', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36原创 2020-09-21 11:28:55 · 163 阅读 · 1 评论