Manual:Pywikibot/spamremove.py

spamremove.py is a script used to remove links that are being or have been spammed.

Usage:

spamremove.py www.spammedsite.com

It will use Special:Linksearch to find the pages on the wiki that link to that site, then for each page make a proposed change consisting of removing all the lines where that url occurs. You can choose to:
 * accept the changes as proposed
 * edit the page yourself to remove the offending link
 * not change the page in question

Command line options: -always          Do not ask, but remove the lines automatically. Be very careful in using this option!

-namespace:      Filters the search to a given namespace. If this is specified multiple times it will search all given namespaces