weibo-crawler
weibo-crawler copied to clipboard
报错 信息抓取完毕
HTTPSConnectionPool(host='m.weibo.cn', port=443): Max retries exceeded with url: /api/container/getIndex?containerid=1005052590508324 (Caused by ProxyError('Cannot connect to proxy.', FileNotFoundError(2, 'No such file or directory'))) Traceback (most recent call last): File "D:\anaconda\lib\site-packages\urllib3\connectionpool.py", line 696, in urlopen self._prepare_proxy(conn) File "D:\anaconda\lib\site-packages\urllib3\connectionpool.py", line 964, in _prepare_proxy conn.connect() File "D:\anaconda\lib\site-packages\urllib3\connection.py", line 364, in connect conn = self._connect_tls_proxy(hostname, conn) File "D:\anaconda\lib\site-packages\urllib3\connection.py", line 501, in connect_tls_proxy socket = ssl_wrap_socket( File "D:\anaconda\lib\site-packages\urllib3\util\ssl.py", line 453, in ssl_wrap_socket ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls) File "D:\anaconda\lib\site-packages\urllib3\util\ssl.py", line 495, in _ssl_wrap_socket_impl return ssl_context.wrap_socket(sock) File "D:\anaconda\lib\ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "D:\anaconda\lib\ssl.py", line 1040, in _create self.do_handshake() File "D:\anaconda\lib\ssl.py", line 1309, in do_handshake self._sslobj.do_handshake() FileNotFoundError: [Errno 2] No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "D:\anaconda\lib\site-packages\requests\adapters.py", line 439, in send resp = conn.urlopen( File "D:\anaconda\lib\site-packages\urllib3\connectionpool.py", line 755, in urlopen retries = retries.increment( File "D:\anaconda\lib\site-packages\urllib3\util\retry.py", line 574, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='m.weibo.cn', port=443): Max retries exceeded with url: /api/container/getIndex?containerid=1005052590508324 (Caused by ProxyError('Cannot connect to proxy.', FileNotFoundError(2, 'No such file or directory')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "D:\weibo-crawler-master\weibo-crawler-master\weibo.py", line 1859, in get_pages if self.get_user_info() != 0: File "D:\weibo-crawler-master\weibo-crawler-master\weibo.py", line 334, in get_user_info js, status_code = self.get_json(params) File "D:\weibo-crawler-master\weibo-crawler-master\weibo.py", line 204, in get_json r = requests.get(url, params=params, headers=self.headers, verify=False) File "D:\anaconda\lib\site-packages\requests\api.py", line 75, in get return request('get', url, params=params, **kwargs) File "D:\anaconda\lib\site-packages\requests\api.py", line 61, in request return session.request(method=method, url=url, **kwargs) File "D:\anaconda\lib\site-packages\requests\sessions.py", line 542, in request resp = self.send(prep, **send_kwargs) File "D:\anaconda\lib\site-packages\requests\sessions.py", line 655, in send r = adapter.send(request, **kwargs) File "D:\anaconda\lib\site-packages\requests\adapters.py", line 510, in send raise ProxyError(e, request=request) requests.exceptions.ProxyError: HTTPSConnectionPool(host='m.weibo.cn', port=443): Max retries exceeded with url: /api/container/getIndex?containerid=1005052590508324 (Caused by ProxyError('Cannot connect to proxy.', FileNotFoundError(2, 'No such file or directory')))