tw_get_wikipedia_sections_api_url {tidywikidatar} | R Documentation |
Facilitates the creation of MediaWiki API base URLs to retrieve sections of a page
Description
Mostly used internally
Usage
tw_get_wikipedia_sections_api_url(
url = NULL,
title = NULL,
language = tidywikidatar::tw_get_language()
)
Arguments
url |
A character vector with the full URL to one or more Wikipedia pages. If given, title and language can be left empty. |
title |
Title of a Wikipedia page or final parts of its url. If given, url can be left empty, but language must be provided. |
language |
Two-letter language code used to define the Wikipedia version to use. Defaults to language set with |
Value
A character vector of base urls to be used with the MediaWiki API
Examples
tw_get_wikipedia_sections_api_url(title = "Margaret Mead", language = "en")
[Package tidywikidatar version 0.5.9 Index]