User:WindBOT/Source: Difference between revisions
From the Portal Wiki
More actions
→Dependencies: new wikitools_mod version, fixes wikiUpload when uploading with non-encoded unicode path names |
No edit summary |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 6: | Line 6: | ||
* I am a [http://python.org/ Python] bot. That means you need [http://www.python.org/download/releases/2.6.6/ Python 2.6]. On Ubuntu: | * I am a [http://python.org/ Python] bot. That means you need [http://www.python.org/download/releases/2.6.6/ Python 2.6]. On Ubuntu: | ||
<pre>$ sudo apt-get install python2.6</pre> | <pre>$ sudo apt-get install python2.6</pre> | ||
* I also need [http://upload.gaiatools.com/files/ | * I also need [http://upload.gaiatools.com/files/wikitools_mod_5.7z a modified version of wikitools] to use the MediaWiki API. Comes with a separate hand-crafted module called wikiUpload to allow file uploading without MediaWiki 1.16. On Ubuntu: | ||
<pre>$ wget 'http://upload.gaiatools.com/files/ | <pre>$ wget 'http://upload.gaiatools.com/files/wikitools_mod_5.7z' | ||
$ p7zip -d wikitools*.7z && wikitools*.7z | $ p7zip -d wikitools*.7z && wikitools*.7z | ||
$ mv wikiUpload.py MultipartPostHandler.py `dirname "/path/to/bot.py"` | $ mv wikiUpload.py MultipartPostHandler.py `dirname "/path/to/bot.py"` | ||
| Line 14: | Line 14: | ||
* (''Optional'') [http://cpulimit.sourceforge.net/ cpulimit] can be used to limit the bot's often-high CPU usage when applying filters to a lengthy page, to ensure sufficient resources to other programs running concurrently on the server. This does slow the bot down but makes it act nicer to others, which is welcome on a shared host. On Ubuntu: | * (''Optional'') [http://cpulimit.sourceforge.net/ cpulimit] can be used to limit the bot's often-high CPU usage when applying filters to a lengthy page, to ensure sufficient resources to other programs running concurrently on the server. This does slow the bot down but makes it act nicer to others, which is welcome on a shared host. On Ubuntu: | ||
<pre>$ sudo apt-get install cpulimit</pre> | <pre>$ sudo apt-get install cpulimit</pre> | ||
* (''Optional'') [http://pmt.sourceforge.net/pngcrush/ pngcrush] can be used to crush PNG images in file filters. Without it, images will not be considered for crushing. On Ubuntu: | * (''Optional'') [http://pmt.sourceforge.net/pngcrush/ pngcrush] can be used to crush PNG images in file filters. Without it, images will not be considered for crushing. On Ubuntu: | ||
<pre>$ sudo apt-get install pngcrush</pre> | <pre>$ sudo apt-get install pngcrush</pre> | ||