Description Usage Arguments Value WARNING
View source: R/screen_scrape_tweets.R
Given a start and end date, function looks for tweet ID files already to disk
and gets tweet IDs for the remaining date range(s) by calling scrape_tweet_ids
.
1 2 3 4 |
screen.name |
is the screen (or account) name of a twitter user |
user.id |
is the user ID of a twitter user |
since |
a date (format '%Y-%m-%d'), specifying the start of the date range to be requested |
until |
a date (format '%Y-%m-%d'), specifying the end of the date range to be requested |
remdr |
an active RSelenium |
date.interval |
date interval passed to 'by' argument of |
sleep |
Seconds to pause between non-adjacent date ranges. Defautls to 2. |
.write.out |
logical. write out tweet IDs as JSON to disk?
If |
.data.path |
Path to look at for existing tweet ID files
Also the path where new ID files are written if |
.file.stem |
JSON file name stem (stem ignores date ranges)
Defaults to glob 'tw_user_< |
verbose |
logical. Print out status messages? |
... |
further arguments passed to |
A tibble
data frame.
The data frame is empty if an error occurs or no tweet IDs were scraped in the given time range.
Otherwise it has columns
'screen_name' (<chr>, as passed to argument screen.name
),
'since' (<date>, as returned by interval-specific calls to scrape_tweet_ids),
'until' (<date>, as returned by interval-specific calls to scrape_tweet_ids),
'tweet_id' (<chr>) and
'user_id' (<chr>, as passed to argument user.id
)
, and one row is one tweet.
Function presuposses an active remote Selenium driver.
Function only accepts dates in format '%Y-%m-%d' (Year-month-day: 'YYYY-mm-dd')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.