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 Page.save. Here's a typical usage that moves a page from one category to another:
text = page.edit() text = text.replace('[[Category:Apples]]', '[[Category:Pears]]') page.save(text, summary='Moved from category Apples to category Pears')
(optional) section: Currently unimplemented. (default:
(optional) readonly: Currently unimplemented. (default:
- 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).