spagg-o-matic saves from Wikipedia random daily facts, stores them into Redis, and serves them via API
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| cron | ||
| src | ||
| .gitignore | ||
| constants.py | ||
| docker-compose.yml | ||
| Dockerfile | ||
| main.py | ||
| Pipfile | ||
| Pipfile.lock | ||
| README.md | ||
| sync_redis.py | ||
spagg-o-matic
spagg-o-matic saves from Wikipedia random daily facts, stores them into Redis, and serves them via API
Already hosted by myself
https://spaggomatic.gimbaro.dev
Docs
return example:
{
"fact": "Just a random Fact",
"year": "1999"
}
Requirements
Just Python3, Pipenv, and Redis (or Docker and nothing else)
Setup
without Docker
pipenv install
pipenv run main
NB: Docker handles cron, to sync
with Docker
docker compose build
docker compose up