Difference between revisions of "Changelink.py"
From MythTV Official Wiki
Line 6: | Line 6: | ||
== Source == | == Source == | ||
+ | {{Box File|changelink.py| | ||
<pre> | <pre> | ||
import re, sys | import re, sys | ||
Line 27: | Line 28: | ||
</pre> | </pre> | ||
− | + | }} | |
== Usage == | == Usage == | ||
To run the script, it needs two arguments. (Use quotation marks to escape the shell). | To run the script, it needs two arguments. (Use quotation marks to escape the shell). | ||
Line 36: | Line 37: | ||
[[Category:Bot]] | [[Category:Bot]] | ||
+ | [[Category:Python Scripts]] |
Revision as of 03:59, 22 March 2007
Note: The correct title of this article is changelink.py. It appears incorrectly here due to technical restrictions.
This is a pywikipedia script, developed to support maintenance of this site.
There are many page links that appear as Foo Bar, where the article is titled FooBar. This script will update all the pages correctly.
Source
Usage
To run the script, it needs two arguments. (Use quotation marks to escape the shell).
% python changelink.py "Foo Bar" "FooBar"
It will find every article pointed at Foo Bar, substitue [[FooBar]], and then write it as a minor edit. This helps reduce the number of Special:Wantedpages.