Waldir Pimenta edited this page May 25, 2014 · 3 revisions
Clone this wiki locally

Page.edit() retrieves the text associated with the current revision of the page, and begins an editing session which can later be completed with Here's a typical usage that moves a page from one category to another:

text = page.edit()
text = text.replace('[[Category:Apples]]', '[[Category:Pears]]'), summary='Moved from category Apples to category Pears')


  • (optional) section: Currently unimplemented. (default: None)
  • (optional) readonly: Currently unimplemented. (default: False)


Returns the text of the current revision of the page. The Page.text and Page.last_rev_time data members are also updated with the text of the current revision and timestamp of the most recent edit.


  • InsufficientPermission: The logged-in user does not have permission to edit the page. It may be protected, the user may not have editing permission, or the user may not be logged in correctly (on wikis which disable anonymous editing).

This page was originally imported from the old mwclient wiki at SourceForge. The imported version was dated from 05:10, 6 February 2012, and its only editor was Derrickcoetzee (@dcoetzee).