Git Product home page Git Product logo

wikivoyage-nastoshka-bot's Introduction

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

wikivoyage-nastoshka-bot's People

Contributors

amasotti avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.