Manual:Pywikibot/coordinate import.py

From MediaWiki.org
Jump to navigation Jump to search

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎español • ‎français • ‎italiano • ‎polski • ‎português do Brasil • ‎suomi • ‎čeština • ‎עברית • ‎日本語
Git logo

coordinate_import.py is a script to mass import coordinates from Wikipedia to Wikidata .

Concept[edit]

On Wikimedia wiki's GeoData extension is installed. This adds coordinates to the api. This bot uses that information to add a claim to Wikidata. By default P625 (coordinate location) is used.

In the future the bot might support other properties as long as the property is of type globe-coordinate.

Syntax[edit]

The bot expects a generator:

python coordinate_import.py <some generator>