twitter-r

R twitteR package, get followers despite limit

妖精的绣舞 提交于 2019-12-22 10:44:18
问题 I've been playing around with the R twitteR package and haven't figured out how to implement a system to collect more than the maximum per hour # of followers for a twitter user. I know the plan should be to collect the maximum, wait X amount of time, then repeat until all are collected, but how do I do this with the twitteR package? the getFollowers(n) process would just keep getting the same n followers each time. 回答1: Try adding blockOnRateLimit=TRUE to your call. It'll sit and wait until

TwitteR: 'searchTwitter' only returns a small set of tweets

做~自己de王妃 提交于 2019-12-22 08:36:22
问题 I am trying to retrieve ~3000 tweets with keyword "nba" or hashtag "#nba" using twitteR function 'searchTwitter' but it only returns 299 tweets for "nba" and 398 tweets for "#nba" between 2013-01-01 and 2014-02-25. I am really confused, is this normal? Has anyone else experienced similar problem using twitteR? Please help. Much appreciated! library(twitteR) library(plyr) library(stringr) load("~/twitter_authentication.Rdata") registerTwitterOAuth(cred) nbahash_tweets = searchTwitter("#nba"

R and twitteR - userTimeline() function not returning the number of tweets requested

那年仲夏 提交于 2019-12-06 09:14:11
问题 Why can't I get the number of tweets I request when I use the userTimeline() function in the twitteR package ? I now the limit request for a user timeline is 3200 tweets but I just get about 10% of that... Here are two examples : In this example 'googledevs' account has only 2,000 tweets so I did ask for 1000 tweets and I still only got 106... > library(twitteR) > load('OAuth.RData') > test <- userTimeline(user = 'googledevs', n=1000) > length(test) [1] 106 In this example 'FiveThirtyEight'

R and twitteR - userTimeline() function not returning the number of tweets requested

人盡茶涼 提交于 2019-12-04 16:36:57
Why can't I get the number of tweets I request when I use the userTimeline() function in the twitteR package ? I now the limit request for a user timeline is 3200 tweets but I just get about 10% of that... Here are two examples : In this example 'googledevs' account has only 2,000 tweets so I did ask for 1000 tweets and I still only got 106... > library(twitteR) > load('OAuth.RData') > test <- userTimeline(user = 'googledevs', n=1000) > length(test) [1] 106 In this example 'FiveThirtyEight' has 5622 tweets. So I asked for 3200 and only got 317... > library(twitteR) > load('OAuth.RData') >

R: How to save lists into csv?

蓝咒 提交于 2019-11-27 01:40:10
问题 So im actually working on twitteR and i need a way to store my tweets into a csv file and pull it out when i need it . This is due to the idea i want to compile the tweets i collect and then apply them to my algorithms to do the calculations later. So , i thought of trying write.csv(tweets, file = "newfile", row.names = TRUE, sep = ',', col.names = TRUE) which only works if create a data frame tho :/ . The tweets that i collect looks like this [[1]] [1] "anonymous: boring!" [[2]] [1]