https://bugzilla.wikimedia.org/show_bug.cgi?id=64074
Merlijn van Deen <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Merlijn van Deen <[email protected]> --- Workaround using pywikibot-core: import sys, pywikibot pywikibot.handleArgs() site = pywikibot.Site() site.login() if pywikibot.inputChoice('Are you sure you want to clear your watchlist on %s?' % site, ['yes', 'no'], ['y', 'n'], 'n') == 'n': sys.exit(1) while True: wt = pywikibot.data.api.Request(site=site, action='tokens', type='watch').submit()['tokens']['watchtoken'] wd = pywikibot.data.api.Request(site=site, action='watch', unwatch=True, generator='watchlistraw', gwrlimit=5000, token=wt).submit() if not wd['watch']: break else: print "%i pages removed..." % len(wd['watch']) (store in scripts/clearwatchlist.py; then python pwb.py clearwatchlist -site:... -lang:...) -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
