User:TedderBot/WikiBacon

Project basics
wikibacon, AKA the Wikipedia bacon tool: show relationship between user A and user B

The name comes from the "Six Degrees of Kevin Bacon", though it only shows DIRECT relationships, not 6 degrees in relationships.

Discussions:
 * User talk:Tedder
 * Bots/Requests for approval/TedderBot
 * Wikipedia_talk:Requests for adminship/Archive 180
 * Help desk/Archives/2009 August 6

Output

 * Public output: User:TedderBot/Bacon Results

Technologies

 * perl
 * Wikipedia API:query
 * API:Query - Lists
 * API contribs example, basic
 * API contribs example, extended
 * python libraries

Infrastructure
Hosted on my own server unless my request for a Toolserver account is granted.

Code is on Github, and uses the MIT License.

Prerequisites

 * Data::Dumper
 * MediaWiki::API
 * Time::ParseDate
 * Storable

Installation
Assuming the above prerequisites are met, a few paths are currently hardcoded: mw_user: TedderBot mw_pass: plaintext_password
 * test/tedderbot-test.pl: $userfile is at /home/tedt/.wiki-userinfo. This file should contain the account information the bot is running as:
 * TedderBot/UserContribs.pm: $filename is a cache to the usercontribs. This will probably go away if the script is moved to the Toolserver.

Running
Example: test/tedderbot-test.pl --user1=Tedder --user2=Katr67 --test Remove --test to cause output to be sent to User:TedderBot/Bacon Results.