now with configuration

This commit is contained in:
Abel Luck 2026-03-29 13:52:23 +02:00
parent 65b1520697
commit 34d26f7def
10 changed files with 497 additions and 83 deletions

17
demo/README.md Normal file
View file

@ -0,0 +1,17 @@
# Demo
This directory shows the runtime-config setup with a dedicated config file.
## Local Run
From the repo root:
```shell
uv run repub --config demo/repub.toml
```
Because `out_dir` in [`demo/repub.toml`](/home/abel/src/guardianproject/anynews/republisher-redux/demo/repub.toml) is relative, output is written under `demo/out/`.
## Files
- `repub.toml`: example runtime config with feed definitions and Scrapy overrides

13
demo/repub.toml Normal file
View file

@ -0,0 +1,13 @@
out_dir = "out"
[[feeds]]
name = "gp-pod"
url = "https://guardianproject.info/podcast/podcast.xml"
[[feeds]]
name = "nasa"
url = "https://www.nasa.gov/rss/dyn/breaking_news.rss"
[scrapy.settings]
LOG_LEVEL = "INFO"
DOWNLOAD_TIMEOUT = 30