Fetches category (or categories) of content hosted by a domain according to DMOZ.
The function checks if path to the DMOZ file is provided by the user.
If not, it looks for dmoz_domain_category.csv in the working directory. It also returns
results for prominent subdomains.
dmoz_cat(domains, use_file = NULL)vector of domain names
path to the dmoz file, which can be downloaded using get_dmoz_data
A tibble following classification_results. Source-specific data are
retained in details; all source labels are retained in labels.
DMOZ closed in March 2017 and the snapshot shipped here is from 2015, so these labels
describe the domain as it was a decade ago. 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.
source_vintage for the provenance of every category source
if (FALSE) { # \dontrun{
dmoz_cat(domains = "http://www.google.com")
dmoz_cat(domains = c("http://www.google.com", "http://plus.google.com"))
} # }