mkearney / tweetbotornot

🤖 R package for detecting Twitter bots via machine learning
https://tweetbotornot.mikewk.com
Other
388 stars 136 forks source link

How to use botornot on Twitter data collected without using rtweet? #34

Open fraba opened 2 years ago

fraba commented 2 years ago

Do I need to create a data frame with specific column names?

JBGruber commented 2 years ago

Check the usage section in the readme:

## load package
library(tweetbotornot)

## select users
users <- c("realdonaldtrump", "netflix_bot",
  "kearneymw", "dataandme", "hadleywickham",
  "ma_salmon", "juliasilge", "tidyversetweets", 
  "American__Voter", "mothgenerator", "hrbrmstr")

## get botornot estimates
data <- tweetbotornot(users)

This uses screen names entered as a vector of strings. You can also use the author_ids here.