backLinks: lists pages that link to the Wikipedia page

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/backLinks.R

Description

lists all pages that link to a specific Wikipedia page.

Usage

1
backLinks(page = NULL, domain = "en")

Arguments

page

numeric identifier or character title of the specific wikipedia page

domain

a character value specifying the language of the wikipedia page.The default value is "en" for "english language".

Details

This function uses API query syntax: "list=backlinks". For more details, see https://www.mediawiki.org/wiki/API:Backlinks

Value

an object of class backLinksClass containing:

Author(s)

Avner Bar-Hen, Louise Baschet, Francois-Xavier Jollois, Jeremie Riou

See Also

print.backLinksClass links

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
#' # a simple example
backLinks("Louis Pasteur") 

backLinks.Baschet <- backLinks(page ="Cristal Baschet", domain ="fr")
table(backLinks.Baschet$backLinks$nscat)

## example with no back link
backLinks(page = 976, domain = "en" )

# with a page that not exist (at the moment of the redaction of this help page)
backLinks("zzzzz")

## End(Not run)

WikipediaR documentation built on May 29, 2017, 10:46 p.m.

Search within the WikipediaR package
Search all R packages, documentation and source code