2015-02-23 26 views
1

这是我在这里的第一篇文章,所以我很抱歉如果我的问题是怪异/愚蠢的。为什么我在使用Twitter Rest API时出现这个错误

我正在使用本书 - >使用Python构建机器学习系统来学习。

在第6章中,我们必须下载Niek Sanders(〜5000ish tweet)的推文语料库,我在作者github - > here上在线找到了代码,并使用我的twitter应用程序帐户并输入了所有密钥和令牌在twitter auth.py文件中。然而,当我运行install.py文件,它下载5个鸣叫,向我吐出了以下错误:

We will skip 1107 tweets that are not available or visible any more on twitter 
We have already downloaded 5 tweets. 
Fetching 4779 tweets... 
['apple', 'positive', '126394830791254016'] 
--> downloading tweet #126394830791254016 (1 of 4779) 
Twitter sent status 404 for URL: 1.1/statuses/show.json using parameters: (id=blank&oauth_consumer_key=blank&oauth_nonce=blank&oauth_signature_method=blank&oauth_timestamp=1424721838&oauth_token=blank&oauth_version=1.0&oauth_signature=blank) 
details: {"errors":[{"code":144,"message":"No status found with that ID."}]} 

我更换了所有字键这里空白,让他们秘密

回答

2

从它的外观看,你似乎试图用一个无效的ID拉一条推文。推特被删除的可能性很大,从而导致该ID无效。

+0

其实我刚刚检查过,你说得对,我将这些推特ID添加到not_authorized.tsv – ChasingDingos 2015-02-23 21:03:53

相关问题