Jump to content

User:TedderBot/WikiBacon

From Wikipedia, the free encyclopedia
Bacon the cat, the mascot of WikiBacon

Project basics

[edit]

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:

Output

[edit]

Technologies

[edit]

Infrastructure

[edit]

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

Code is on Github, and uses the MIT License.

Prerequisites

[edit]
  • Data::Dumper
  • MediaWiki::API
  • Time::ParseDate
  • Storable

Installation

[edit]

Assuming the above prerequisites are met, a few paths are currently hardcoded:

  • test/tedderbot-test.pl: $userfile is at /home/tedt/.wiki-userinfo. This file should contain the account information the bot is running as:
mw_user: TedderBot
mw_pass: plaintext_password
  • TedderBot/UserContribs.pm: $filename is a cache to the usercontribs. This will probably go away if the script is moved to the Toolserver.

Running

[edit]

Example:

test/tedderbot-test.pl --user1=Tedder --user2=Katr67 --test

Remove --test to cause output to be sent to User:TedderBot/Bacon Results.

Notes

[edit]