wikibot

Mastodon bot that posts daily with historical events from today from wikipedia

GPL-3.0 License

Stars
0
Committers
1

Mastodon Wiki Bot

Hosted at @[email protected]

Provides a daily markdown formatted post with random events from this date in history on wikipedia along with a random wikipedia article.

Setup

  1. Clone and cd into repository
  2. (Optional, recommended) Setup a virtual environment (python -m virtualenv .venv and source .venv/bin/activate)
  3. Install requirements.txt (pip install -r requirements.txt)
  4. Copy config.toml.example to config.toml
  5. Create mastodon credentials on your server (login to bot account -> settings -> Development -> Create New Application)
  6. Copy server url and access token into config.toml
  7. Configure wiki user agent and customize number of events/birts/deaths/holidays in config.toml
  8. run the script with python wiki.py
  9. (Optional) configure crontab, sample configuration: 0 18 * * * /home/tom/wiki-bot/.venv/bin/python /home/tom/wiki-bot/wiki.py (runs every day at 6pm)