好友
阅读权限20
听众
最后登录1970-1-1
|
初见悲风
发表于 2020-7-26 18:00
运行一段时间后,出错了楼主看一看
Traceback (most recent call last):
File "D:\Python\install\lib\site-packages\urllib3\connectionpool.py", line 662, in urlopen
self._prepare_proxy(conn)
File "D:\Python\install\lib\site-packages\urllib3\connectionpool.py", line 948, in _prepare_proxy
conn.connect()
File "D:\Python\install\lib\site-packages\urllib3\connection.py", line 394, in connect
ssl_context=context,
File "D:\Python\install\lib\site-packages\urllib3\util\ssl_.py", line 370, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "D:\Python\install\lib\ssl.py", line 423, in wrap_socket
session=session
File "D:\Python\install\lib\ssl.py", line 870, in _create
self.do_handshake()
File "D:\Python\install\lib\ssl.py", line 1139, in do_handshake
self._sslobj.do_handshake()
OSError: [Errno 0] Error
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Python\install\lib\site-packages\requests\adapters.py", line 449, in send
timeout=timeout
File "D:\Python\install\lib\site-packages\urllib3\connectionpool.py", line 720, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "D:\Python\install\lib\site-packages\urllib3\util\retry.py", line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='i.pximg.net', port=443): Max retries exceeded with url: /img-original/img/2020/07/25/11/00/02/83206041_p0.png (Caused by ProxyError('Cannot connect to proxy.', OSError(0, 'Error')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:/Python/Program/爬取pixiv.py", line 12, in <module>
rgid = requests.get(img_url,headers=user)
File "D:\Python\install\lib\site-packages\requests\api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "D:\Python\install\lib\site-packages\requests\api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "D:\Python\install\lib\site-packages\requests\sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "D:\Python\install\lib\site-packages\requests\sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "D:\Python\install\lib\site-packages\requests\adapters.py", line 510, in send
raise ProxyError(e, request=request)
requests.exceptions.ProxyError: HTTPSConnectionPool(host='i.pximg.net', port=443): Max retries exceeded with url: /img-original/img/2020/07/25/11/00/02/83206041_p0.png (Caused by ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))) |
|