weibo-crawler icon indicating copy to clipboard operation
weibo-crawler copied to clipboard

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

Open tsumichan1 opened this issue 1 year ago • 1 comments

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

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

tsumichan1 avatar Oct 28 '24 14:10 tsumichan1

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

dataabc avatar Oct 28 '24 15:10 dataabc