How do I get past tweeter data using R?
I would like to receive tweets regarding a specific line in the last 4 years. I am using the following code
searchTwitter('dieoff', n=9000, from = '2010-01-01', until = '2015-05-30')
Using this, I was able to receive 43 tweets.
But when I tried the same code with different duration (only 1 year and half)
searchTwitter('dieoff', n=9000, from = '2014-01-01', until = '2015-05-30')
I also had 43 tweets. How can I solve such a problem. I would like to receive tweets from the last 4 years. I am ready to try it in any language.
+3
source to share
1 answer
What you want to do is not possible with a function searchTwitter()
because the Twitter search API limits results to the last week or so (per that thread ). I've heard of workarounds, possibly using rvest
, but haven't tried it myself.
+1
source to share