getPageXML: The getPageXML function

Description Usage Arguments Warnings Examples

View source: R/getPageXML.R

Description

Connects to wikipedia API and retrieves an xml file with the whole revision history of an specific page.

Usage

1
getPageXML(titles, file, language = "en", limit = "max")

Arguments

titles,

titles of pages that need to be retrieved.

file,

indicates where the xl file needs to be saved.

language,

indicates the version of wikipedia to retrieve results from. Default is English wikipedia.

limit,

indicated the maximum amount of revisions that need to be retrieved. If set to "max" the function retrieved the whole revision history.

Warnings

This function relies on current version of the Wikipedia API and may need to be updated when API changes.

Examples

1
getPageXML("Patum_de_Berga", file = 'Patum_de_Berga.xml')

neperiana/wikiHistoRyViz documentation built on Nov. 4, 2019, 9:31 p.m.