twitter_analytics_downloader: Tweet Activity

Description Usage Arguments Details Examples

View source: R/twitter_analytics_downloader.R

Description

Downloads the Tweet activity report from Twitter Analytics.

Usage

1
2
twitter_analytics_downloader(username, password, start_date, end_date,
  download_directory = getwd())

Arguments

username

String specifying the phone, email or username of a Twitter account.

password

String specifying the password of the Twitter account.

start_date

String specifying the start date of the period to download in format "%Y-%m-%d".

end_date

String specifying the end date of the period to download in format "%Y-%m-%d".

download_directory

String specifying the directory where the downloaded files will be saved. Current directory is set by default.

Details

This function downloads one or more csv files containing detailed data of the given account's tweets: number of impressions, engagement rate, number of retweets, link clicks, etc.

Twitter Analytics restricts the maximum possible date range to a 91-day window. If the selected date range is longer than 91 days, this function splits the download into several downloads.

Examples

1
2
3
## Not run: 
twitter_analytics_downloader("username", "password", "2018-01-01", "2018-04-01", "C:/Users/ABCD/Downloads")
## End(Not run)

pferrando/TwitterAnalyticsDownloader documentation built on May 24, 2019, 9:52 a.m.