Small Python utility based on pywikibot
for routine tasks on Wikivoyage.
It's based on
- Python v.
3.10
- Pywikibot v.
8.6.0
(current stable release: docs)
- Clone the repo
- Install pywikibot
- Generate a user-config.py file with
pwb generate_user_files
- Login with
pwb login
- Run the script (see below under "Scripts" for more details):
- Itemlist Wikidata Completer - script to fill the params
wikidata
,lat
,long
in Itemlist (Città and Destinazione) that lack them - Empty section finder - script to find empty sections in articles given the name of the category and of the section to be checked
- Missing Itemlist Finder - script to find articles from a given category (usually
Region
orState
) that lack a list of cities or destinations, despite of referring to larger entities (states, regions) - DynamicMap Filler - script to fill the
dynamicmap
lat and long parameter in articles that lack it
- Wikivoyage coordinates getter - script to get the coordinates for a given Wikidata item in wikivoyage listing format (lat=, long=, wikidata=)
To start the scripts in this way, add this line to your user-config.py
:
user_script_paths=["bot/wikivoyage/scripts"] # or the path where you cloned the script
Then run as a normal pywikibot script:
pwb <script-name> <options>
see LICENSE file
You can find me on Wikivoyage, Wikipedia or Meta