Manual:Pywikibot/claimit.py

From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page Manual:Pywikibot/claimit.py and the translation is 33% complete.

Other languages:
català • ‎Deutsch • ‎English • ‎español • ‎suomi • ‎français • ‎italiano • ‎日本語 • ‎Nederlands • ‎polski • ‎português do Brasil
Git-logo.svg
Wikimedia Git repository has this file:scripts/claimit.py

claimit.py is a script to mass add WikidataWikibase claims to a lot of items based on pages on Wikipedia

Conceito[edit]

A category or template on Wikipedia gives information about what kind of page it is. For example if it contains a person infobox, it's probably a person. Or as another example: If a page is in a certain taxonomic family category, it's probably in that family. Based on this information you can instruct the bot to add claims.

Sintaxe[edit]

The bot expects a generator and a pairs of property and item:

python claimit.py <some generator> P1 Q2 P3 Q4