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&group\_id=93107 \)
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\)
Version: compat-(1.0)
Severity: normal
See Also:
https://sourceforge.net/p/pywikipediabot/patches/521
T72682: Implement extracts in Pywikibot