Package: |
WikipediaR |
Type: |
Package |
Version: |
1.1 |
Date: |
2016-01-25 |
License: |
GPL (>2) |
Depends: |
R (>= 2.10.0), XML (>=2.6.3), httr (>=1.0.0) |
URL: |
http;//www.r-project.org |
Repository: |
CRAN |
Packaged: |
2016-02-05 09:57:22 UTC; Louise |
Built: |
R 3.2.3; ; 2016-02-05 09:57:22 UTC; windows |
As part of a PRES Sorbonne Paris Cite project, Paris Descartes statisticians, computer scientists and sociologists Paris Diderot Sciences Po are working on the problem of multi-level networks. One part of the project is to analyze data extracted from Wikipedia with the free software R.
Like the twitteR
package that provides an interface to the Twitter web API, the objective of the WikipediaR
package is to provide a way to access to data extracted from Wikipedia, and return it in a exploitable format in R. API means application programming interface.
A package already exists with a similar objective : WikipediR
. This package is under progress, and as it permits modifications on the Wikipedia base, it needs a connexion, with rights. To see more details about this package, you can visit http://ironholds.org/blog/introducing-wikipedir/.
Our package use the XML
package to interact with wikipedia, via MediaWiki API syntax. You can see this syntax here: http://en.wikipedia.org/w/api.php.
Which others packages interact with MediaWiki API ?
The Tiki Wiki CMS/Groupware framework has an R plugin ( PluginR
) to run R code from wiki pages, and use data from their own collected web databases (trackers). A demo: http://r.tiki.org
The wikibooks
package provides functions and datasets of the german WikiBook "GNU R".
Remark1: "fr" and "en" domains have been tested, but others can lead to not anticipated problem. Trying domain="gu" is at your peril... The encoding is UTF-8 for most of the output.
Remark2: as the functions get informations on internet in real time, the execution time depends on your internet connection !
Index:
backLinks lists pages that link to the Wikipedia page
contribs lists contributions for a specific wikipedia page
links links on a Wikipedia page
testWikiPage internal function testWikiPage
testWikiUser internal function testWikiPage
userContribs list of contributions for a specific user
userInfo General information for a Wikipedia user