lokal-profil / wikidata-stuff

Pywikibot framework for importing and sourcing statements on Wikidata
MIT License
5 stars 3 forks source link
pywikibot wikidata

wikidata-stuff Build Status

Random scripts used for doing mass imports to Wikidata. The emphasis is on sourcing Claims whether new or pre-existing. As such any imported statement will follow the following decision tree (any added statement includes the source):

For details on how qualifiers are handled, see wikidatastuff.wikidata_stuff.WikidataStuff.match_claim().

For details on how sources are compared, see wikidatastuff.reference.

Components

Usage example:

For usage examples see lokal-profil/wikidata_batches.

Note that these may be using older versions of the repo.

Running as a different user:

To run as a different user to your standard pywikibot simply place a modified user-config.py-file in the top directory.

To use a different user for a particular mass import place the user-config.py in the subdirectory and run the script with -dir:<sub-directory>.

Deprecations

Deprecated functions, classes and arguments may be dropped at any major version change. To display the deprecation warnings run your script using the pywikibot -debug flag (you must be making use of pywikibot.handleArgs()) or add the -Wd option to your python call.

Requirements