首页 > 解决方案 > 为什么 getoldtweets3 库提供 404 错误?

问题描述

我正在使用 getoldtweets3 库来抓取电晕爆发信息。我得到这个错误 -

error : C:\Users\Vilius\anaconda3\python.exe C:/Users/Vilius/PycharmProjects/Sentiment-Analysis2/twitter_analysis.py
An error occured during an HTTP request: HTTP Error 404: Not Found

尝试在浏览器中打开:https ://twitter.com/search?q=CoronaOutbreak%20since%3A2020-01-01%20until%3A2020-04-01&src=typd

即使链接正常工作,可能是什么问题? https://github.com/attreyabhatt/Sentiment-Analysis<-我正在使用此代码

标签: pythonpycharmnltktweepysentiment-analysis

解决方案


这也是一个影响其他人的问题......

https://github.com/Mottl/GetOldTweets3/issues/98

似乎 twitter 已经删除了 GetOldTweets3 使用的端点(https://twitter.com/i/search/timeline?)。

不幸的是,可能不得不等待解决方案或找到其他一些抓取推文的方法


推荐阅读