Coder Social home page Coder Social logo

pygeohashing's Introduction

How to set up aperfectbot:

  1. Get a bot user.
    1. This makes it so the bot's edits don't flood recent changes on the wiki, and makes it apparent that these edits were done automatically.
  2. Get pywikibot set up
    1. Download pywikibot module.
    2. Follow these instructions to set up the bot framework https://www.mediawiki.org/wiki/Manual:Pywikibot/Use_on_third-party_wikis
      1. Generate the geohashing family based on those instruction.
      2. Use the login script to log into the bot, then it should save a cookie so that it can keep operating in the background forever.
  3. Generate a full date list
    • This is for automatic updating of old date pages.
    • python datelist_gen.py > aperfectbot_updates.txt
  4. Generate the graticules database
    • This took about 15 minutes last time I ran it
    • python pwb.py /path/to/pygeohashing/buildGraticuleDatabase.py
    • It will count up multiple times, one for each "All Graticules" page.
  5. Manually run the bot once
    • Run it in the directory you intend to run it from normally, to ensure things are going well
    • Check the recent changes on the wiki to see if there are a bunch of destructive edits.
    • python pwb.py /path/to/pygeohashing/aperfectbot.py
  6. Start up a cron job to run the bot automatically
    • Here's the one I used forever:

* * * * * cd /path/to/pywikibot; if [ ! -e aperfectbot.lock ]; then date > aperfectbot.lock; python pwb.py /path/to/pygeohashing/aperfectbot.py >output.txt 2>&1 ; rm aperfectbot.lock; fi

pygeohashing's People

Contributors

aperfectring avatar pfo avatar piotrekoo avatar relet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

piotrekoo pfo

pygeohashing's Issues

Geohashing site moving

We're moving the wiki to https://geohashing.site/; the bot will presumably need re-pointing? If you're still happy to run it, please feel free to make the changes yourself - if you're no longer interested in running it, let me know and I'll try to have somebody adopt and adapt it.

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.