-
Notifications
You must be signed in to change notification settings - Fork 198
The search_tweets function does not retrieve the number of tweets set in "n =" argument. #442
Comments
It seems like I have a similar problem: in my case, I am trying to pull user data with the following code:
Rate limit for get_users is 900, but the function usually stops at a seemingly random amount of requests before that. Example:
In the 15 minute - interval after that, I cannot call the rate_limit function:
I am wondering if this has to do with the ongoing rebuild of the Twitter API: https://developer.twitter.com/en/products/twitter-api/early-access My rtweet-version and R version are identical, Thanks in advance! |
|
I also have this problem. |
Bumping, example code:
Stops anywhere from 10-25%, have yet to get a successful pull. |
Now tracking in #510 |
I have an issue with the search_tweets (or search_tweets2) function of rtweet package. Not sure, whether the problem is rtweet dependent, though.
This is my code, I want to retrieve 50K tweets with certain keywords:
Normally, it would download the first 18K tweets, then wait (due to the retryonratelimit = TRUE argument), then download another 18K tweets, then wait again and then download the rest. But recently, the behavior of the function became unpredictable, with sudden drops in the middle of the process. No matter what I do, only rarely it completes the whole cycle. Most often it does not even complete the first round, dropping the whole process and writing only about 9K tweets to the variable pl_hrb.
Here are the rtweet version and the outputs (four random attempts):
Crash 1:
Crash 2:
Almost done:
Success:
Session info:
Then, after every failed retrieve attempt I get a different number of rows (tweets, observations) in my output dataframe - sometimes it is only 1.5K, sometimes it is about 40K and often something in between.
The create_token function seems to work seamlessly, the appropriate environment is created and the access to the Twitter API is granted.
I've asked the same question on the SOF forum last week but got no response, not even a note so far. This is very unusual for this forum, where people get answers to their questions in minutes. Also, I don't believe I am the first to obtain this error.
I want to address this issue to this community and to ask for help / solution.
Thank you in advance.
The text was updated successfully, but these errors were encountered: