/zenbot

Bot scripts for Wikidata

Primary LanguagePythonThe UnlicenseUnlicense

milanbot

Codacy Badge

This suite of bots interact with Wikidata and Wikipedia using the Pywikibot library.

Setup

git clone https://github.com/milanjelisavcic/milanbot.git
cd milanbot
virtualenv .venv
source .venv/bin/activate
pip install -r requirements.txt

Log-in to meta.wikimedia.org with the account that will use MilanBot and visit Special:OAuthConsumerRegistration/propose to get OAuth tocken. Create user-config.py and add the following lines:

family = 'wikipedia'  # or other Wikimedia project
mylang = 'en'  # or 'wikidata' or other language code

usernames['wikipedia']['en'] = \
    usernames['wikidata']['wikidata'] = \
    usernames['commons']['commons'] = \
    ...
        u'ExampleBot'

authenticate['*.wikipedia.org'] = \
    authenticate['*.wikidata.org'] = \
    authenticate['*.commons.org'] = \
    ...
    ('<consumer_key>',
     '<consumer_secret>',
     '<access_key>',
     '<access_secret>')

After the users credentials are properly added, the bot can access and edit the Wikimedia projects.

Getting Started

TBA