Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (12 months ago)
- Default Branch: main
- Last Pushed: 2024-03-25T16:57:50.000Z (10 months ago)
- Last Synced: 2024-11-29T07:04:34.525Z (about 1 month 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 [@[email protected]](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.
![image](https://github.com/TomCasavant/wikibot/assets/7014115/3c371c26-5a0b-4c41-bf41-8ae2d5843995)
## 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)[![Follow @[email protected]](https://fedi-badge.deno.dev/@[email protected]/followers.svg?style=plastic)](https://tomkahe.com/@daily_wikipedia)