View source: R/SNscrape_functions.R
snscrape_search | R Documentation |
Calls Python script to pull status URLs of a search, rtweet to rehdrate those statuses. See https://github.com/JustAnotherArchivist/snscrape
snscrape_search( search_string, since_date = NULL, until_date = NULL, n = 100, file = "temp", token = NULL, delete_tempfile = TRUE )
search_string |
A search string (in quotes) |
since_date |
Start date for the search (iso format date in quotes) |
until_date |
Latest date for the search (iso format date in quotes NB: search works backward) |
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 |
test <- snscrape_search("Trump", since_date = "2016-09-06", until_date = "2016-11-06", n = 1000, file = "test_", token = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.