https://github.com/tomcasavant/wikibot
Mastodon bot that posts daily with historical events from today from wikipedia
https://github.com/tomcasavant/wikibot
bot mastodon python wikipedia
Last synced: 6 months ago
JSON representation
Mastodon bot that posts daily with historical events from today from wikipedia
- Host: GitHub
- URL: https://github.com/tomcasavant/wikibot
- Owner: TomCasavant
- License: gpl-3.0
- Created: 2024-01-31T22:05:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-25T16:57:50.000Z (over 2 years ago)
- Last Synced: 2025-03-20T17:58:07.677Z (over 1 year ago)
- Topics: bot, mastodon, python, wikipedia
- Language: Python
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mastodon Wiki Bot
Hosted at [@daily_wikipedia@tomkahe.com](https://tomkahe.com/@daily_wikipedia)
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)
[](https://tomkahe.com/@daily_wikipedia)