predict_botometer: Botometer scores

Description Usage Arguments Value Examples

View source: R/botometer.R

Description

Get Botometer scores for given user(s)

Usage

1
2
3
4
5
6
7
8
predict_botometer(
  users,
  token = NULL,
  key = NULL,
  set_key = FALSE,
  parse = TRUE,
  verbose = TRUE
)

Arguments

users

Vector of user IDs or screen names

token

rtweet token. If NULL (default), then rtweet looks for a token path in .Renviron

key

Botometer API key, which you should be able to get from: https://rapidapi.com/OSoMe/api/botometer/details

set_key

Logical indicating whether to set the botometer key as an R environment variable for current future sessions (on the same machine).

parse

Logical indicating whether to parse return information. If TRUE (the default) then a data.table is returned.

verbose

Logical indicating whether to print updates between each call. Default is TRUE.

Value

A data frame (data.table) of user ID, screen name, and botometer score

Examples

1
2
3
4
5
6
7
8
## Not run: 
## get botometer scores
b <- predict_botometer(c("kearneymw", "netflix_bot", "magicrealismbot", "PatrickMahomes"))

## get full information returned by botometer (as response objects)
r <- predict_botometer(c("kearneymw", "netflix_bot"), parse = FALSE)

## End(Not run)

mkearney/tweetbotornot2 documentation built on Feb. 22, 2020, 2:32 a.m.