2012-11-21 44 views
2

我想要獲取所有包含過去兩年(例如1月11日至12月12日)標籤(例如#rstats)ocer的推文。然而,使用searchTwitter只會返回1500.我認爲(根據一些閱讀)我必須登錄才能查詢超過1500條推文。 現在,我在Mac OS上,使用R(我打開使用Python,如果存在一個簡單直接的解決方案)並且無法登錄;運行此如何獲得所有(即1500+)帶給定時間段內給定主題標籤的推文?

requestURL <- "https://api.twitter.com/oauth/request_token" 
accessURL <- "http://api.twitter.com/oauth/access_token" 
authURL <- "http://api.twitter.com/oauth/authorize" 
twitCred <- OAuthFactory$new(consumerKey = twt.name, consumerSecret = twt.pass, requestURL = requestURL, accessURL = accessURL, authURL = authURL) 
twitCred$handshake() 

回報:

Error in twitCred$handshake(): 
Invalid response from site, please check your consumerKey and consumerSecret and try again. 

我明白,如果有人可以幫助我得到這個工作。 謝謝!

回答

相關問題