feat: +fl.ru

This commit is contained in:
2026-07-14 15:04:31 +07:00
parent 8b0e1ffffa
commit a0f1f1ade8
6 changed files with 97 additions and 10 deletions

View File

@@ -14,6 +14,7 @@ class Settings:
telegram_proxy_url: str | None
scheduler_interval_minutes: int
kwork_category_ids: list[int]
fl_rss_url: str | None
keywords_include: list[str]
keywords_exclude: list[str]
min_price_amount: int | None
@@ -33,6 +34,7 @@ def load_settings() -> Settings:
telegram_proxy_url=_parse_optional_text(os.getenv("TELEGRAM_PROXY_URL", "")),
scheduler_interval_minutes=int(os.getenv("SCHEDULER_INTERVAL_MINUTES", "5")),
kwork_category_ids=_parse_int_list(os.getenv("KWORK_CATEGORY_IDS", "41")),
fl_rss_url=_parse_optional_text(os.getenv("FL_RSS_URL", "https://www.fl.ru/rss/?category=5")),
keywords_include=_parse_text_list(os.getenv("KEYWORDS_INCLUDE", "")),
keywords_exclude=_parse_text_list(os.getenv("KEYWORDS_EXCLUDE", "")),
min_price_amount=_parse_optional_int(os.getenv("MIN_PRICE_AMOUNT", "")),