import pywikibot
from pywikibot import proofreadpage
site = pywikibot.Site('ta','wikisource')
page = pywikibot.Page(site, u"Page:")
text = page.text
pa = proofreadpage.ProofreadPage(page)
pa.text = pa.text.replace('level="1"','level="3"')
pa.save(summary="demo")
===
When I ran the a
2016-04-27 19:30 GMT+01:00 John Mark Vandenberg :
> Pywikibot has a class ProofreadPage which allows modification of level via
> simple attributes and methods.
>
> https://github.com/wikimedia/pywikibot-core/blob/master/pywikibot/proofreadpage.py#L67
>
> If you dont want to use Pywikibot, its code
Pywikibot has a class ProofreadPage which allows modification of level via
simple attributes and methods.
https://github.com/wikimedia/pywikibot-core/blob/master/pywikibot/proofreadpage.py#L67
If you dont want to use Pywikibot, its code can be helpful and it can be
copied using very unrestrictive
The html source of the buttons are as below.
Found that they are provided by proofread extension.
The color scheme is as
https://www.mediawiki.org/wiki/Help:Extension:ProofreadPage/Page_quality_system
There is no api available for now.
It has been reported here https://phabricator.wikimedia.
I am trying to work on https://ta.wikisource.org with python API.
This tamil wikisource has custom html option buttons to mention the edit status.
See a screenshot here.
https://snag.gy/f3aTBn.jpg
How to enable these custom option buttons via API?
Thanks.
--
Regards,
T.Shrinivasan
My Life w