language: The language code of the project you wish to query, if appropriate.
project: The project you wish to query ("wikiquote"), if appropriate. Should be provided in conjunction with language.
domain: as an alternative to a 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.
page_name: The title of the page you want to retrieve
page_id: the pageID of the page you want to retrieve. Set to NULL by default, and an alternative to page_name; if both are provided, page_id will be used.
as_wikitext: whether to retrieve the wikimarkup (TRUE) or the HTML (FALSE). Set to FALSE by default.
clean_response: whether to do some basic sanitising of the resulting data structure. Set to FALSE by default.
...: further arguments to pass to httr's GET.
Examples
## Not run:#Content from a Wikimedia projectwp_content <- page_content("en","wikipedia", page_name ="Aaron Halfaker")#Content by IDwp_content <- page_content("en","wikipedia", page_id =12)#Content from a non-Wikimedia projectrw_content <- page_content(domain ="rationalwiki.org", page_name ="New Age")## End(Not run)
See Also
revision_diff for retrieving 'diffs' between revisions, revision_content for retrieving the text of specified revisions.