It's based on mwclient instead of pywikibot, but I do have some code that uses the checkuserlog API.

https://github.com/roysmith/spi-tools/blob/2080f436d6aeb7d49346241c3dfa356d479b2d19/wiki_interface/wiki.py#L389

The hardest part was convincing the WMF folks to approve an OAuth consumer with CU rights.  Apparently I was the first person to ever ask for that, and nobody knew if they were allowed to approve it or not!





On Feb 23, 2023, at 1:54 PM, BinĂ¡ris <wikiposta@gmail.com> wrote:

Folks, do we have anything to use CU/Investigate by bot?

--
BinĂ¡ris
_______________________________________________
pywikibot mailing list -- pywikibot@lists.wikimedia.org
Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/5JDS74VISDF4L62QEFPPWNRL4FCHVH3P/
To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org