Manual:Pywikibot/Compat/standardize notes.py
< Manual:Pywikibot‎ | Compat
This page is documentation for Pywikipedia Compat, which is no longer supported. This page is kept for historical interest. It may document scripts and features that are obsolete and/or no longer supported. Do not rely on the information here being up-to-date.
standardize_notes.py is a python bot script for improving references and citations.
The current version
Default behavior includes displaying changes and asking for confirmation to perform the intended changes.
If no title information is found or there are errors in accessing the URL, the title will contain the URL.
Command line options (in addition to the general options for all bots):
-sqlRetrieve information from a local SQL dump (cur table, see https://dumps.wikimedia.org​).
Argument can also be given as "-sql:filename".
-fileWork on all pages given in a local text file.
  • Will read any wiki link and use these articles.
  • Argument can also be given as "-file:filename".
-catWork on all pages which are in a specific category.
Argument can also be given as "-cat:categoryname".
-pageOnly edit a single page.
Argument can also be given as "-page:pagename". You can give this parameter multiple times to edit multiple pages.
-regexMake replacements using regular expressions. (Obsolete; always True)
-except:XYZIgnore pages which contain XYZ. If the -regex argument is given, XYZ will be regarded as a regular expression.
-namespace:nNamespace to process. Works only with a sql dump.
-alwaysDon't prompt you for each replacement.
To process a single page page, one can use:
python standardize_notes.py -page:Somepage
Last edited on 27 August 2021, at 23:38
Content is available under CC BY-SA 3.0 unless otherwise noted.
Privacy policy
Terms of Use
 Home Random Log in  Settings  Donate  About MediaWiki.org  Disclaimers