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.

The methods and results may be changed in the future, as Wikibase evolves.

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 d: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.