mirror of
https://github.com/zvx-echo6/recon.git
synced 2026-05-20 14:44:54 +02:00
- Add lib/zim_monitor.py: polls kiwix-serve OPDS v2 catalog, detects new ZIMs, reads accurate article count from python-libzim Counter metadata (not inflated OPDS count), inserts into zim_sources table. Idempotent on re-run, marks removed ZIMs. - DB schema: zim_sources, zim_samples, zim_articles tables (created via sqlite3, not in migrations — matches existing RECON pattern) - kiwix-tools 3.7.0 installed from binary tarball at /opt/recon/bin/ (Ubuntu 24.04 apt ships 3.5.0 which lacks OPDS v2) - kiwix.service systemd unit on port 8430 - python-libzim 3.9.0 installed - Test ZIM: Appropedia EN maxi (496 MB, 19,445 articles) - Add bin/ to .gitignore (binary tarball, not source)
29 lines
230 B
Text
29 lines
230 B
Text
# Python
|
|
venv/
|
|
__pycache__/
|
|
*.pyc
|
|
*.pyo
|
|
|
|
# Secrets
|
|
.env
|
|
|
|
# Runtime data
|
|
data/
|
|
logs/
|
|
pipeline.log
|
|
recon.db
|
|
|
|
# Backups
|
|
*.bak
|
|
*.bak-*
|
|
*.bak.*
|
|
*.bak2.*
|
|
|
|
# Junk
|
|
-.png
|
|
|
|
# OS
|
|
.DS_Store
|
|
|
|
# Kiwix binary tools (installed from tarball)
|
|
bin/
|