get_revision

WikipediaPage.get_revision(revid='', force=False, extra_params={})

Retrieve the content of a revision by its revision id

For more paramaters, you can check the wikipedia API documentation.

Examples

>>> p = WikipediaPage("Pi")
>>> p.get_content()
Parameters:
  • revid (string, optional) – Revision id of the article. If none is given, it just check the last revision id give by the wikipedia API
  • force (boolean, optional) – If set to True, it fetch the content whatever is in the cache object. Useful to retrieve different version without touching the cache
  • extra_params (dict) – todo: document extra_params@get_content
Returns:

content – todo: document content@get_content

Return type:

string