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

EXE闪退问题解决办法 #18

Open
zhyreng opened this issue Feb 11, 2020 · 5 comments
Open

EXE闪退问题解决办法 #18

zhyreng opened this issue Feb 11, 2020 · 5 comments

Comments

@zhyreng
Copy link

zhyreng commented Feb 11, 2020

将文件jd-automask_V2.py中46行的ua = UserAgent()改为:ua = UserAgent(verify_ssl=False)

@Rlacat
Copy link
Owner

Rlacat commented Feb 11, 2020

试过了,解决不了。
只能把模拟ua去掉了

@zhyreng
Copy link
Author

zhyreng commented Feb 11, 2020

可以呀,我跑起来了

@zhyreng
Copy link
Author

zhyreng commented Feb 11, 2020

跑一段时间不行是因为连接拒绝,看来10个线程也太频繁

@zhyreng
Copy link
Author

zhyreng commented Feb 11, 2020

Traceback (most recent call last):
File "D:/Person/JD/jdmask_a1 _code/jd-automask_V2.py", line 829, in validate_cookies
resp = session.get(url=targetURL, params=payload, allow_redirects=False)
File "D:\Program Files\Python37\lib\site-packages\requests\sessions.py", line 546, in get
return self.request('GET', url, **kwargs)
File "D:\Program Files\Python37\lib\site-packages\requests\sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "D:\Program Files\Python37\lib\site-packages\requests\sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "D:\Program Files\Python37\lib\site-packages\requests\adapters.py", line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('### Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

@zhyreng
Copy link
Author

zhyreng commented Feb 11, 2020

其实感觉不用模拟ua,采用原作者的v3多线程就好了,每个线程一个cookie。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants