Fetches category of content hosted by a domain according to Shalla. The function checks if path to the shalla file is provided by the user. If not, it looks for shalla_domain_category.csv in the working directory.

shalla_cat(domains, use_file = NULL)

Arguments

domains

vector of domain names

use_file

path to the latest shallalist file downloaded using get_shalla_data

Value

A tibble following classification_results. Source-specific data are retained in details; all source labels are retained in labels.

Details

Shallalist stopped publishing in 2022, so these labels describe the domain as it was then or earlier, not as it is now. The returned source_last_published column carries that vintage when the file has verified download metadata. A warning is issued once per session. See source_vintage.

Publication dates come from the .metadata.json sidecar written by the downloader, checked against the file contents. source_fetched_at is the download time. Files without matching metadata return NA dates; filesystem timestamps are not used.

See also

source_vintage for the provenance of every category source

Examples

if (FALSE) { # \dontrun{
shalla_cat(domains = "http://www.google.com")
} # }