Wikipedia. Uses the MediaWiki API to get Wikipedia article URLs matching a
search phrase. Does not search your local corpus. Use read_urls
to get article content from these URLs.
fetch_wiki_urls(query, limit = 10)Character vector of full Wikipedia article URLs.
if (FALSE) { # \dontrun{
wiki_urls <- fetch_wiki_urls("January 6 Capitol attack")
corpus <- read_urls(wiki_urls[1])
} # }