Btw the quarry url can be passed as pagegenerators -url option:

https://doc.wikimedia.org/pywikibot/stable/api_ref/pywikibot.pagegenerators.html?highlight=pagegenerators#generator-options

https://phabricator.wikimedia.org/T239436

xqt

Am 02.11.2022 um 02:57 schrieb info@gno.de:


Hi Roy,

this is great. And It would be nice to have a Pywikibot interface to quarry I think.

xqt


Am 02.11.2022 um 02:29 schrieb info@gno.de:

Hi,

I think blocks() can be used:
https://doc.wikimedia.org/pywikibot/stable/api_ref/pywikibot.site.html#pywikibot.site._generators.GeneratorsMixin.blocks
but there is no possibility for expiry filtering and you have to do it with the query result.

Maybe MySQL or SPARQL gives a way but I am not familiar wir it:


Best
xqt


Am 01.11.2022 um 23:54 schrieb John <phoenixoverride@gmail.com>:


Nothing currently exists, but should be fairly easy using a log parser and a local database.

On Tue, Nov 1, 2022 at 5:39 PM Bináris <wikiposta@gmail.com> wrote:
Hi,

I want to write a script that monitors block logs or the list of active blocks for a certain reason (open proxy), and warns me if a block expires soon.
Warning may be written either to a noticeboard or a mailing list, the main thing is to find them.
Rationale: we give 1 year block for proxies, but after expiration they are likely to be still open, and need revision.

Do we have a clever tool for this? How would you begin the task?


--
Bináris
_______________________________________________
pywikibot mailing list -- pywikibot@lists.wikimedia.org
To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
_______________________________________________
pywikibot mailing list -- pywikibot@lists.wikimedia.org
To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org