| Mpaa added a comment. |
You are not doing anything wrong.
Page() class does not support all values of:
- rvcontentformat: Serialization format used for rvdifftotext and expected for output of content. One of the following values: text/x-wiki, application/json, text/plain, text/_javascript_, text/css
but only the default (I think it is text/x-wiki).
If you want to save json, you need to subclass Page() and overwrite save() method.
I did it in proofreadpage.py. You can use it as reference.Unfortunately, this works only when saving.
There is currently no way to load using rvcontentformat other that text/plain.I tried once but gave it up. See https://gerrit.wikimedia.org/r/#/c/224852/.
You can try resurrect that concept.
TASK DETAIL
EMAIL PREFERENCES
To: Mpaa
Cc: Mpaa, Aklapper, pywikibot-bugs-list, Discasto, Magul, Tbscho, rafidaslam, MayS, Mdupont, JJMC89, debt, Reasno, Avicennasis, Base, jayvdb, zhuyifei1999, Dalba, Yurik, Masti, Alchimista, Rxy, Jay8g
Cc: Mpaa, Aklapper, pywikibot-bugs-list, Discasto, Magul, Tbscho, rafidaslam, MayS, Mdupont, JJMC89, debt, Reasno, Avicennasis, Base, jayvdb, zhuyifei1999, Dalba, Yurik, Masti, Alchimista, Rxy, Jay8g
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
