revision_diff(language = NULL, project = NULL, domain = NULL, revisions,
properties = c("ids", "flags", "timestamp", "user", "userid", "size",
"sha1", "contentmodel", "comment", "parsedcomment", "tags", "flagged"),
direction, clean_response = FALSE, ...)
language
.language
and project
combination,
you can also provide a domain ("rationalwiki.org") to the URL constructor, allowing
for the querying of non-Wikimedia MediaWiki instances.If you're going to be asking for a lot of diffs, some of which may not be cached, it may be more
sensible to retrieve the revisions themselves using revision_content
and compute the
diffs yourself.
page_content
for retrieving the current content of a specific page, and
revision_content
for retrieving the text of specific revisions.#Wikimedia diff
wp_diff <- revision_diff("en","wikipedia", revisions = 552373187, direction = "next")
#Non-Wikimedia diff
rw_diff <- revision_diff(domain = "rationalwiki.org", revisions = 88616, direction = "next")
Run the code above in your browser using DataLab