contribs: lists contributions of a specific wikipedia page

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

Description

provide the list of the contributions of a wikipedia page: discussions for Talk pages, or revisions for Subject pages.

Usage

1
contribs(page = NULL, domain = "en", rvprop = "user|userid|timestamp")

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".

rvprop

Which properties to get for each revision (separate with '|'):

  • ids: the ID of the revision

  • flags: revision flags (minor)

  • timestamp: the timestamp of the revision, i.e. day and time

  • user: user that made the revision

  • userid: user id of revision creator

  • size: length (bytes) of the revision

  • sha1: SHA-1 (base 16) of the revision

  • contentmodel: content model id

  • comment: comment by the user for revision

  • parsedcomment: parsed comment by the user for the revision

  • content: text of the revision

  • tags: tags for the revision

Default: user|userid|timestamp

Details

This function uses the API query syntax: "prop=revisions". For more details, see https://www.mediawiki.org/wiki/API:Backlinks If the page is ambiguous, the contributions correspond to the modification on this ambiguous page, not on the possible linked pages. If the user is anonymous, the user in the output corresponds to the IP address, and the userid is zero.

Value

an object of class contribsClass:

Author(s)

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

See Also

print.contribsClass userInfo

Examples

1
2
3
4
5
6
7
8
## Not run: 
## numeric page identifier as parameter
contribs(domain = "fr", page = 108907)

## title page as parameter
contribs(domain ="en", page = "Wikipedia")

## End(Not run)

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