spagg-o-matic saves from Wikipedia random daily facts, stores them into Redis, and serves them via API
Find a file
gimbaro d1143279e6
All checks were successful
Deploy / deploy (push) Successful in 56s
🚀 retry
2026-01-07 05:13:14 +01:00
.forgejo/workflows 🚀 retry 2026-01-07 05:13:14 +01:00
cron completed dockerization and code quality improvs 2023-07-08 20:09:00 +02:00
src cors :) 2025-06-02 15:33:58 +02:00
.gitignore 🚀 retry 2026-01-07 05:11:45 +01:00
constants.py sacrificing my soul to wikipedia 2023-07-08 20:37:08 +02:00
docker-compose.yml added redis dependency 2025-11-23 19:22:42 +01:00
Dockerfile completed dockerization and code quality improvs 2023-07-08 20:09:00 +02:00
main.py 🐛 now syncs new facts on server start 2023-07-08 20:24:35 +02:00
Pipfile completed dockerization and code quality improvs 2023-07-08 20:09:00 +02:00
Pipfile.lock completed dockerization and code quality improvs 2023-07-08 20:09:00 +02:00
README.md completed dockerization and code quality improvs 2023-07-08 20:09:00 +02:00
sync_redis.py completed dockerization and code quality improvs 2023-07-08 20:09:00 +02:00

wakatime

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