Manual:Wikibot/RPEDFileReader
Appearance
This page is obsolete. It is being retained for archival purposes. It may document extensions or features that are obsolete and/or no longer supported. Do not rely on the information here being up-to-date. |
RPEDFileReader Release status: experimental |
|
---|---|
Implementation | Bot |
Description | Updates the rped_page table using information from a file (e.g. enwiki-yyyymmdd-all-titles-in-ns0 from http://dumps.wikimedia.org/) |
Author(s) | Tisane |
Latest version | 1.0.0 |
MediaWiki | 1.16+ |
License | GPL |
Download | Subversion [Help ] Browse source code |
There is a bot that can run as a daemon. It inserts to the rped_table
through the API by page titles from a file. It is designed to be used with Extension:RPED.
Usage
[edit]Sample configuration settings
[edit]Here are some sample configuration settings for wikibot.config.php:
$wikibotSetting['user']['*']['YourWikiName']='YourBotName';
$wikibotSetting['pass']['*']['YourWikiName']='YourPassword';
$wikibotSetting['maxurllength']['*']['*']=200; # 200 character max URL when sending data to the API
Command line arguments
[edit]The first argument is the bot name; the second argument is the wiki name; the third argument is the filename; the fourth argument is the page title to begin with (e.g. if the script got interrupted earlier); and the fifth argument can be "nodaemon" if you prefer not to daemonize the script. E.g.:
php RPEDIRCBot.php YourBotName YourWikiName enwiki-20100312-all-titles-in-ns0