Skip to content

Own bot scripts for routine and maintenance tasks on Wikivoyage

License

Notifications You must be signed in to change notification settings

amasotti/wikivoyage-nastoshka-bot

Repository files navigation

Wikivoyage Nastoshka Bot

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)

Usage

  1. Clone the repo
  2. Install pywikibot
  3. Generate a user-config.py file with pwb generate_user_files
  4. Login with pwb login
  5. Run the script (see below under "Scripts" for more details):

Scripts

  • 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 or State) 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

Utilities

Start as a pywikibot script

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>

Useful resources

License

see LICENSE file

About me

You can find me on Wikivoyage, Wikipedia or Meta

About

Own bot scripts for routine and maintenance tasks on Wikivoyage

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages