Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User:WindBOT/Source: Difference between revisions

From the Portal Wiki
Dependencies: new wikitools_mod version, fixes wikiUpload when uploading with non-encoded unicode path names
MogDog66 (talk | contribs)
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/wikitools_mod_2.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:
* 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/wikitools_mod_2.7z'
<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://git.optf2.com/steamodd.git steamodd] can be used to communicate with the TF2 [[WebAPI|Web API]]. On Ubuntu:
<pre>$ sudo apt-get install git
$ git clone http://git.optf2.com/steamodd.git
$ cd steamodd
$ sudo python2.6 setup.py install</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>