https://bugzilla.wikimedia.org/show_bug.cgi?id=54569
Web browser: --- Bug ID: 54569 Summary: Retrieve / edit the section Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/patches/521/ Reported by: lankier Created on: 2011-07-15 10:11:55 Subject: Retrieve / edit the section Original description: This patch adds new parameter 'section' to Page.get & Page.put. (See also feature requests https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3104703... )
Examples: add a new section: page.put('New section text', comment='New section header', section='new') edit the top section: text = page.get(section=0) page.put(text+'\n\n==New section==\nNew text', section=0)