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

验证码 #11

Closed
Lsj425 opened this issue Mar 30, 2020 · 4 comments
Closed

验证码 #11

Lsj425 opened this issue Mar 30, 2020 · 4 comments

Comments

@Lsj425
Copy link

Lsj425 commented Mar 30, 2020

首次登陆时,终端输入验证码后报如下错误:
Traceback (most recent call last):
File "d:/VSCodeWD for Python/NLPExercise/WeiboSuperSpider/无 GUI 功能独立版/WeiboSuperCommentScrapy.py", line 145, in login
ticket = ticket_js["ticket"]
KeyError: 'ticket'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "d:/VSCodeWD for Python/NLPExercise/WeiboSuperSpider/无 GUI 功能独立版/WeiboSuperCommentScrapy.py", line 297, in WeiboLogin(username, password, cookie_path).login()
File "d:/VSCodeWD for Python/NLPExercise/WeiboSuperSpider/无 GUI 功能独立版/WeiboSuperCommentScrapy.py", line 155, in login
ticket = ticket_js["ticket"]
KeyError: 'ticket'

@Lsj425
Copy link
Author

Lsj425 commented Mar 30, 2020

问题已解决
原因是账号开启了双重验证,打扰了,大佬好人一生平安

@inspurer
Copy link
Member

收到

@gsscsd
Copy link

gsscsd commented Aug 17, 2020

我关闭了双重验证,依然报这个错误,大佬请问咋解决的?

@inspurer
Copy link
Member

com 微博已经不能验证码登录了,必须使用手机微博扫码登录才行,具体可以见最新文章:https://mp.weixin.qq.com/s/tJ5gwoZCksVAAQ2OTHsTgA

@inspurer inspurer pinned this issue Nov 3, 2020
@inspurer inspurer closed this as completed Nov 4, 2020
@inspurer inspurer unpinned this issue Dec 27, 2021
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

3 participants