links: lists links on a Wikipedia page

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

Description

lists all links (to wikipedia and to external url) that are present in a specific wikipedia page.

Usage

1
links(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 url.The default value is "en" for "english language".

Details

This function uses the MediaWiki API query syntax: "prop=links". For more details, see http://www.mediawiki.org/wiki/API:Properties#links_.2F_pl.

Value

an object of class linksClass containing:

Author(s)

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

See Also

print.linksClass backLinks

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
# a simple example
links("Louis Pasteur") # default domain : en

# with a redirected page
links.Obama <- links(page ="Obama")
links.Obama
# warning message

# a simple example with page specified by its page ID number
links(page = 976, domain = "fr" )

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

## End(Not run)

WikipediaR documentation built on May 2, 2019, 8:36 a.m.