Manual:Pywikibot/harvest template.py

harvest_template.py is a script to mass add Wikidata claims based on information harvested from Wikipedia templates.

Concept
Templates on Wikipedia, especially infoboxes, contain a lot of useful information that can be used to add claims to Wikidata items.

Syntax
The bot expects a generator, the name of the template and pairs the field in the template and the property to store this in: