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

运行显示【KeyError: 'data'】该如何解决 #462

Open
tsumichan1 opened this issue Oct 28, 2024 · 1 comment
Open

运行显示【KeyError: 'data'】该如何解决 #462

tsumichan1 opened this issue Oct 28, 2024 · 1 comment

Comments

@tsumichan1
Copy link

C:\Users\LS\Desktop\weibo-crawler-master\venv\Scripts\python.exe C:\Users\LS\Desktop\weibo-crawler-master\weibo.py 
'data'
Traceback (most recent call last):
  File "C:\Users\LS\Desktop\weibo-crawler-master\weibo.py", line 1965, in get_pages
    if self.get_user_info() != 0:
       ~~~~~~~~~~~~~~~~~~^^
  File "C:\Users\LS\Desktop\weibo-crawler-master\weibo.py", line 374, in get_user_info
    info = js["data"]["userInfo"]
           ~~^^^^^^^^
KeyError: 'data'
信息抓取完毕
****************************************************************************************************

进程已结束,退出代码为 0

↑运行结果显示这个该怎么解决呢,我本人是代码小白
顺带一提在今天下午之前还可以正常使用抓取来着

@dataabc
Copy link
Owner

dataabc commented Oct 28, 2024

说明被暂时限制了,一般来说,限制过一段时间会自动解除,过几天再运行看看。

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