Manual:Pywikibot/coordinate_import.py

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

Other languages:
English • ‎français • ‎עברית • ‎中文 • ‎日本語
Git logo
このファイルはウィキメディアの Git リポジトリにあります: scripts/coordinate_import.py

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

概念

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.

構文

The bot expects a generator:

python coordinate_import.py <some generator>