A MediaWiki API Wrapper

A wrapper for the MediaWiki API, aimed particularly at the Wikimedia 'production' wikis, such as Wikipedia. It can be used to retrieve page text, information about users or the history of pages, and elements of the category tree.


WikipediR

An R API wrapper for MediaWiki, optimised for the Wikimedia Foundation MediaWiki instances, such as Wikipedia.

Author: Os Keyes
License: MIT
Status: Stable

downloads

Description

WikipediR is a wrapper around the MediaWiki API, optimised for the Wikimedia Foundation's production sites, such as Wikipedia. It is written in and for R, a statistical environment and associated programming language in heavy use by HCI researchers that, somehow, escaped having an API wrapper until now.

Installation

For the most recent version, on CRAN:

install.packages("WikipediR")

For the development version:

library(devtools)
devtools::install_github("ironholds/WikipediR")

Limitations

WikipediR currently lacks:

  • Quite a few possible API calls;
  • Direct authentication, through MediaWiki or OAuth.

These issues will be solved in time; if there is a particular feature you want, open an issue here on github: I can't prioritise if I don't know what people are trying to do :).

Dependencies

  • R. Doy.
  • httr and its dependencies.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("WikipediR")

1.7.1 by Os Keyes, 3 years ago


https://github.com/Ironholds/WikipediR/


Report a bug at https://github.com/Ironholds/WikipediR/issues


Browse source code at https://github.com/cran/WikipediR


Authors: Os Keyes [aut, cre] , Brock Tilbert [ctb] , Clemens Schmid [aut]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports httr, jsonlite, magrittr

Suggests testthat, knitr, WikidataR, pageviews


Imported by tosca, wikilake, wikitaxa.


See at CRAN