Learn R Programming

WikipediR (version 1.0.0)

wiki_usercontribs: Retrieve user contributions

Description

Retrieves metadata associated with the most recent contributions by a specified user

Usage

wiki_usercontribs(con, user, properties = c("ids", "title", "timestamp",
                                            "comment", "parsedcomment", "size",
                                            "sizediff", "flags", "tags"),
                  mainspace = FALSE, limit = 50)

Arguments

con
A connector object, generated by wiki_con, that corresponds to the project you're trying to query.
user
The username of the user whose contributions you want to retrieve. Due to limitations at the API end, you can only retrieve edits for one user at a time.
properties
The metadata you want associated with each edit. Potential metadata includes "ids" (the revision ID of the revision, which can be passed into wiki_revision), "title" (the name of the page that was edi
mainspace
A boolean flag; FALSE retrieves all of the most recent contributions, while TRUE limits those contributions to those in the 'mainspace' - in other words, to actual articles.
limit
The number of edits to be retrieved. 50 is the maximum for logged-out API users, and putting in more than 50 will generate a warning.