Learn R Programming

traktok (version 0.1.1)

tt_user_follower_api: Get followers and following of users from the research API

Description

[Works on: Research API]

Usage

tt_user_follower_api(
  username,
  max_pages = 1,
  cache = TRUE,
  verbose = interactive(),
  token = NULL
)

tt_user_following_api( username, max_pages = 1, cache = TRUE, verbose = interactive(), token = NULL )

Value

A data.frame containing follower of following account information.

Arguments

username

name(s) of the user(s) to be queried

max_pages

results are returned in batches/pages with 100 videos. How many should be requested before the function stops?

cache

should progress be saved in the current session? It can then be retrieved with last_query() if an error occurs. But the function will use extra memory.

verbose

should the function print status updates to the screen?

token

The authentication token (usually supplied automatically after running auth_research once).

Examples

Run this code
if (FALSE) {
tt_user_follower_api("jbgruber")
# OR
tt_user_following_api("https://www.tiktok.com/@tiktok")
# OR
tt_get_follower("https://www.tiktok.com/@tiktok")
}

Run the code above in your browser using DataLab