Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rate limit handling? #12

Open
henriklied opened this issue Mar 22, 2018 · 7 comments
Open

Rate limit handling? #12

henriklied opened this issue Mar 22, 2018 · 7 comments

Comments

@henriklied
Copy link

I see that rtweet supports a parameter called retryonratelimit, but I cannot find this parameter in the botrnot package. I have a list of about 1 million user IDs to classify, so I need rate limiting handled properly.

Any suggestions?

@Kudusch
Copy link

Kudusch commented Mar 27, 2018

I'm interested in this as well. Passing rtweets retryonratelimit to botrnot would be a great start.

@yongleZ
Copy link

yongleZ commented Jul 8, 2018

Hi, have you fixed this issue yet? I came into the same problem and need some help.

@brainprint
Copy link

Same problem here.

@Hawkeye407
Copy link

Same problem... retryonratelimit will be very handy...

@uluturki
Copy link

You can call the classifier function as follows to have retryonratelimit functionality (slightly modified from the readme):

## get most recent 100 tweets from each user
tmls <- get_timelines(users, n = 100, retryonratelimit = TRUE)

## pass the returned data to botornot()
data <- botornot(tmls)

@victorgois
Copy link

You can call the classifier function as follows to have retryonratelimit functionality (slightly modified from the readme):

## get most recent 100 tweets from each user
tmls <- get_timelines(users, n = 100, retryonratelimit = TRUE)

## pass the returned data to botornot()
data <- botornot(tmls)

How this works?

I am trying to parse a list of 70k "rows" and all I get is 'Warning: Rate limit exceeded - 88'

I am also having problems when I pass my list through parameter in the botornot(). It does not accept list as parameters. I just gave up to pass all the database manually as parameter.

My code trying to pass a list as parameter

## load package
library(tweetbotornot)
library(rtweet)
library(reticulate)

users <- c(py_run_file("script.py"))
#vector <- unlist(users)
users <- c(users)
**#  method not applicable to 'botornot' applied to a class object "list"**
data <- botornot(users)

data[order(data$prob_bot), ]

@kuyaKS
Copy link

kuyaKS commented Jun 7, 2019

I'm having the same problem. Is there already an update on how to handle rate limits in order to test thousands of usernames?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants