snscrape_get_timeline: Wrapper to pull the timeline of a user

snscrape_get_timelineR Documentation

Wrapper to pull the timeline of a user

Description

Calls Python script to pull status URLs of a user search, rtweet to rehdrate those statuses. See https://github.com/JustAnotherArchivist/snscrape

Usage

snscrape_get_timeline(
  screen_name,
  n = 100,
  file = "temp",
  token = NULL,
  delete_tempfile = TRUE
)

Arguments

screen_name

AA twitter username/handle (no"@" required) or user_id (in quotes)

n

Maximum number of results - twitter API has 90k rate-limit per 15 minutes

file

temporary file name for snscrape URL list, timestamp will be appended.

token

An OAuth token loaded in the environment for twitter's Standard API (if not specified, default token will be used)

delete_tempfile

Clear temp file of statuses default = TRUE

Examples

test <- snscrape_get_timeline("Jack",  n = 1000, file = "test_")

Arf9999/rtweetXtras documentation built on June 27, 2022, 5:10 a.m.