View source: R/get_urls_from_ct_histdata.R
get_urls_from_ct_histdata | R Documentation |
Given a CSV created by the CrowdTangle Historical Data feature (preferbly filtered for link type posts), this function extract a unique list of URLs with a first shared date
get_urls_from_ct_histdata(ct_histdata_csv = NULL, newformat = FALSE)
ct_histdata_csv |
a local or remote link to a CSV created by the CrowdTangle Historical Data |
newformat |
set to TRUE in order to use new CrowdTangle CSV format |
A data.frame with a unique list of URLs with respective first seen date
urls <- get_urls_from_ct_histdata(ct_histdata_csv="mylocaldata.csv")
urls <- get_urls_from_ct_histdata(ct_histdata_csv="https://ct-download.s3.us-west-2.amazonaws.com/...")
# Use the new urls dataset to call get_ct_shares function
ct_shares.dt <- get_ctshares(urls, url_column="url", date_column="date", save_ctapi_output=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.