Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行出错,无法连接 #593

Open
alexhill2020 opened this issue Jun 19, 2024 · 2 comments
Open

运行出错,无法连接 #593

alexhill2020 opened this issue Jun 19, 2024 · 2 comments
Labels
failed 程序运行出错

Comments

@alexhill2020
Copy link

为了更好的解决问题,请认真回答下面的问题。等到问题解决,请及时关闭本issue。

  • 问:请您指明哪个版本运行出错(github版/PyPi版/全部)?

答:github版

  • 问:您使用的是否是最新的程序(是/否)?

答:是

  • 问:爬取任意用户都会运行出错吗(是/否)?

答:是

  • 问:若只有爬特定微博时才出错,能否提供出错微博的weibo_id或url(非必填)?

答:

  • 问:若您已提供出错微博的weibo_id或url,可忽略此内容,否则能否提供出错账号的user_id及您配置的since_date,方便我们定位出错微博(非必填)?

答:

  • 问:如果方便,请您描述出错详情,最好附上错误提示。

答:安装好后,并且填上cookies后,运行“main.py”直接无法爬取,报如下错误,貌似是没连接上。cookies已按要求填好,无误。

错误信息:
HTTPSConnectionPool(host='weibo.cn', port=443): Max retries exceeded with url: /1669879400/profile (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:852)'),))
Traceback (most recent call last):
File "D:\Program Files\Python36\lib\site-packages\urllib3\connectionpool.py", line 696, in urlopen
self._prepare_proxy(conn)
File "D:\Program Files\Python36\lib\site-packages\urllib3\connectionpool.py", line 964, in _prepare_proxy
conn.connect()
File "D:\Program Files\Python36\lib\site-packages\urllib3\connection.py", line 364, in connect
conn = self._connect_tls_proxy(hostname, conn)
File "D:\Program Files\Python36\lib\site-packages\urllib3\connection.py", line 507, in connect_tls_proxy
ssl_context=ssl_context,
File "D:\Program Files\Python36\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:\Program Files\Python36\lib\site-packages\urllib3\util\ssl
.py", line 495, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock)
File "D:\Program Files\Python36\lib\ssl.py", line 407, in wrap_socket
_context=self, _session=session)
File "D:\Program Files\Python36\lib\ssl.py", line 817, in init
self.do_handshake()
File "D:\Program Files\Python36\lib\ssl.py", line 1077, in do_handshake
self._sslobj.do_handshake()
File "D:\Program Files\Python36\lib\ssl.py", line 689, in do_handshake
self._sslobj.do_handshake()
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:852)

@alexhill2020 alexhill2020 added the failed 程序运行出错 label Jun 19, 2024
@dataabc
Copy link
Owner

dataabc commented Jun 20, 2024

您参考https://blog.csdn.net/qq_39921575/article/details/104921510看看能否解决问题。

@alexhill2020
Copy link
Author

经多次测试,发现是因为我开了VPN,关掉就可以正常运行了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failed 程序运行出错
Projects
None yet
Development

No branches or pull requests

2 participants