WikipediR v1.5.0

0

Monthly downloads

0th

Percentile

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.

Readme

WikipediR

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

Author: Oliver 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.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

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.

Functions in WikipediR

Name Description
query base query function
pages_in_category Retrieves a list of category members.
revision_content Retrieves MediaWiki revisions
revision_diff Generates a "diff" between a pair of revisions
categories_in_page Retrieves categories associated with a page.
page_backlinks Retrieve a page's backlinks
page_content Retrieves MediaWiki page content
page_external_links Retrieve a page's links
page_info Retrieve information about a particular page
page_links Retrieve a page's links
user_information Retrieve user information
user_contributions Retrieve user contributions
random_page Retrieve the page content of a random MediaWiki page
recent_changes Retrieves entries from the RecentChanges feed
WikipediR A client library for MediaWiki's API
No Results!

Vignettes of WikipediR

Name
WikipediR.Rmd
WikipediR.md
No Results!

Last month downloads

Details

Type Package
Date 2017-02-04
License MIT + file LICENSE
BugReports https://github.com/Ironholds/WikipediR/issues
URL https://github.com/Ironholds/WikipediR/
VignetteBuilder knitr
RoxygenNote 5.0.1
NeedsCompilation no
Packaged 2017-02-05 07:31:29 UTC; ironholds
Repository CRAN
Date/Publication 2017-02-05 08:44:55

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/WikipediR)](http://www.rdocumentation.org/packages/WikipediR)