Skip to contents

Loads the package's curated lists of Russian and Chinese state-controlled media outlets and their web domains, covering language editions and regional subdomains (e.g. deutsch.rt.com, africa.cgtn.com). The lists are built for matching shared URLs in social-media data: each entry carries the domain itself, a language identifier, and a keyword suitable for link-search queries.

Usage

get_domains(country = c("RU", "CN"), online = TRUE)

Arguments

country

one or both of "RU" and "CN"

online

if TRUE (default), pulls the most recent data from the package's GitHub repository; requires an internet connection. If FALSE, uses the data bundled with the installed package.

Value

A tibble with one row per domain entry: country, lang, outlet, url, lang_identifier, prefix, and ct_keyword.

See also

get_accounts() for diplomat and government account lists

Examples

# \donttest{
ru_domains <- get_domains(country = "RU")
#> Warning: Failed to open 'https://raw.githubusercontent.com/schliebs/disinfo/main/inst/extdata/ru/ru_statemedia_domains.csv': The requested URL returned error: 404
#> Error: cannot open the connection
head(ru_domains)
#> Error: object 'ru_domains' not found

all_domains <- get_domains(country = c("RU", "CN"))
#> Warning: Failed to open 'https://raw.githubusercontent.com/schliebs/disinfo/main/inst/extdata/ru/ru_statemedia_domains.csv': The requested URL returned error: 404
#> Error: cannot open the connection
# }