R, twitteR package: How can I get the twitter statuses from a specific time of the year? -
i quite new r , twitter package. student, i'm trying twitter statuses of around 30 specific people during month of october (2013, 2012, 2011). have succeeded 1 of them code
test.x<- usertimeline("x", n=3200, maxid=twitter-id-of-the-last-tweet-of-the-month, sinceid=twitter-id-of-the-first-tweet-of-the-month, includerts=false, retryonratelimit=1500) y <- do.call("rbind", lapply(test.x, as.data.frame)) write.table(y,file="nameoct13.csv",sep=",",row.names=t)
but going take quite long time, as:
- i have manually scroll down timeline id of first , last tweets of month.
- i have 3 times each person
- i have re-do operation 30 people.
can simplification of of these tasks ?
-
as i'm typing these lines, reckon simpler way first tweet of user until last tweet of october 2013, but:
- there going maximum of tweets reached (isn't it?).
- this still leaves (well, me, in case) problem of scrolling timelines quite long time... of users have around 10k tweets...
thank community great help. v.a.
unfortunately, can't twitter::
you'd do. twitter::
accesses twitter api returns tweets more recent few weeks old. there's no way historical tweets using twitter::
because twitter doesn't allow it.
you might have better luck scraping rvest
.
Comments
Post a Comment