get_urls_from_ct_histdata: get_urls_from_ct_histdata

View source: R/get_urls_from_ct_histdata.R

get_urls_from_ct_histdataR Documentation

get_urls_from_ct_histdata

Description

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

Usage

get_urls_from_ct_histdata(ct_histdata_csv = NULL, newformat = FALSE)

Arguments

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

Value

A data.frame with a unique list of URLs with respective first seen date

Examples

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)


fabiogiglietto/CooRnet documentation built on Aug. 15, 2024, 7:16 p.m.