Manual:Pywikibot/Wikidata

This page explains how to create python bots on Wikidata using the basic pywikibot library.

If you just want to run some scripts without writing a line of Python, see the included Wikidata scripts.

Configuration
To start contributing/testing using your bot's account you must add the following to your user-config.py:


 * Production site


 * Testing site

Example
see Wikidata:Creating a bot for an extended documentation. pywikibot core supports most Wikibase features already, e.g., qualifiers, sources, properties with item, coordinate, time, and string type.

Some bot examples

 * [https://bitbucket.org/mikepeel/wikicode/src/master/example.py Example pywikibot code] by User:Mike Peel


 * [https://github.com/multichill/toollabs/tree/master/bot/wikidata Collection of Wikidata bots] by User:Multichill