2015-02-23 143 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

相關問題