I want to get notified whenever any subpage of [[Template:Did you know nominations]] is edited. Is that possible?
Yes, easily. This something watches certain templates that are created daily. (Picture od the day). Just change the generator. The important part is page.watch() and run with -user:Yourname.
# Run: -user:Bináris import pywikibot site = pywikibot.Site()
napok = [-1, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
for honap in range (1, 13): for nap in range(1, napok[honap]+1): title = f'Sablon:Napképe/2025-{honap:02d}-{nap:02d} (hu)' print(title) page = pywikibot.Page(site, title) page.watch()
Roy Smith roy@panix.com ezt írta (időpont: 2024. dec. 8., V, 2:12):
I want to get notified whenever any subpage of [[Template:Did you know nominations]] is edited. Is that possible? _______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/me... To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
I Guess one alternative to list the combinations would be tu use the output of Special:PrefixIndex/[thepagetitle] to list the subpages to watch, if pywiki Can Do this ?
Le dim. 8 déc. 2024 à 07:58, Bináris wikiposta@gmail.com a écrit :
Yes, easily. This something watches certain templates that are created daily. (Picture od the day). Just change the generator. The important part is page.watch() and run with -user:Yourname.
# Run: -user:Bináris import pywikibot site = pywikibot.Site()
napok = [-1, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
for honap in range (1, 13): for nap in range(1, napok[honap]+1): title = f'Sablon:Napképe/2025-{honap:02d}-{nap:02d} (hu)' print(title) page = pywikibot.Page(site, title) page.watch()
Roy Smith roy@panix.com ezt írta (időpont: 2024. dec. 8., V, 2:12):
I want to get notified whenever any subpage of [[Template:Did you know nominations]] is edited. Is that possible? _______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/me... To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
-- Bináris _______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/me... To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.site.html#pywik... I think this sould do the job.
Thomas Douillard thomas.douillard@gmail.com ezt írta (időpont: 2024. dec. 8., V, 9:57):
I Guess one alternative to list the combinations would be tu use the output of Special:PrefixIndex/[thepagetitle] to list the subpages to watch, if pywiki Can Do this ?
Le dim. 8 déc. 2024 à 07:58, Bináris wikiposta@gmail.com a écrit :
Yes, easily. This something watches certain templates that are created daily. (Picture od the day). Just change the generator. The important part is page.watch() and run with -user:Yourname.
# Run: -user:Bináris import pywikibot site = pywikibot.Site()
napok = [-1, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
for honap in range (1, 13): for nap in range(1, napok[honap]+1): title = f'Sablon:Napképe/2025-{honap:02d}-{nap:02d} (hu)' print(title) page = pywikibot.Page(site, title) page.watch()
Roy Smith roy@panix.com ezt írta (időpont: 2024. dec. 8., V, 2:12):
I want to get notified whenever any subpage of [[Template:Did you know nominations]] is edited. Is that possible? _______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/me... To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
-- Bináris _______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/me... To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/me... To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org