[00:00:05] [telegram] Is anyone aware of examples of how to use editing API in Python, together with edit conflict detection? [00:00:06] [telegram] https://www.mediawiki.org/wiki/API:Edit for some reason has only a toy example [00:00:52] [telegram] https://doc.wikimedia.org/pywikibot/master/ ? (re @matkoniecz: Is anyone aware of examples of how to use editing API in Python, together with edit conflict detection? [00:00:52] [telegram] https://www.mediawiki.o...) [00:02:24] [telegram] that is using Pywikibot, I want to use API directly. [00:02:24] [telegram] Pywikibot has insane pointless pile of complexity, starting from need to create user-config.py (re @MaartenDammers: https://doc.wikimedia.org/pywikibot/master/ ?) [00:03:00] [telegram] Ah, you want to re-invent the wheel. Good luck with that! (re @matkoniecz: that is using Pywikibot, I want to use API directly. [00:03:00] [telegram] Pywikibot has insane pointless pile of complexity, starting from need to c...) [00:04:09] [telegram] well, with pywikibot I would need to either [00:04:09] [telegram] - hardcode login data [00:04:10] [telegram] - create it at runtime which is weird, duplicating config data in multiple places and increasing space where things can fail [00:04:12] [telegram] I am trying to create library - in such case having weird special config files with state lurking in random places is really painful. And sharing password and account between all users is nonstarter. (re @MaartenDammers: Ah, you want to re-invent the wheel. Good luck with that!) [00:07:40] [telegram] Did you try https://wikitech.wikimedia.org/wiki/PAWS ? [00:10:53] [telegram] No. Not sure how it would solve any of my problems. (re @MaartenDammers: Did you try https://wikitech.wikimedia.org/wiki/PAWS ?) [00:11:45] [telegram] > baserevid ID of the base revision, used to detect edit conflicts. May be obtained through action=query&prop=revisions. Self-conflicts cause the edit to fail unless basetimestamp is set. [00:11:46] [telegram] at https://www.mediawiki.org/wiki/API:Edit seems to be wrong, with rvprop=ids as a real answer [00:11:48] [telegram] at least for https://wiki.openstreetmap.org/w/api.php?action=query&prop=revisions&rvlimit=1&rvprop=content|timestamp|ids&format=json&titles=Sandbox [00:50:10] It's not wrong per se, rvprop=ids is part of the default unless you specify other things