init: server build project template

This commit is contained in:
2026-10-10 06:27:51 +05:00
commit a6167fccfa
15 changed files with 304 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env python3
"""Заглушка: обходит sources из data/prices.yaml и обновляет цены.
Здесь оставлены TODO — реализация парсеров зависит от сайта."""
from pathlib import Path
import yaml
ROOT = Path(__file__).resolve().parent.parent
prices = yaml.safe_load((ROOT/"data"/"prices.yaml").read_text())
print("Sources:", [s["name"] for s in prices["sources"]])
# TODO: requests + BeautifulSoup для каждой позиции из components.yaml
# TODO: сохранить результат в data/prices.yaml -> overrides