Optional Firecrawl scraping of the full featured article
smoke / hello (push) Successful in 2s
build-and-publish / publish (push) Successful in 14s

Add FIRECRAWL_API_URL / FIRECRAWL_API_KEY env config. When the URL is
set, the featured-article page is scraped through Firecrawl (main
content only) and the richer text replaces the short feed extract,
still capped at 4000 chars. Unset URL or any scrape failure falls
back to the original REST-feed extract behaviour automatically.

Also wire SLOW_RETRY_MINUTES through docker-compose (was missing).
This commit is contained in:
hermes committed 2026-10-11 09:40:16 +00:00
1 parent dc6057fda6
commit 913759918b
5 files changed
+117 -10

No files matched your search

+10
View File
@@ -39,6 +39,16 @@ class Settings:
wikipedia_lang: str = field(
default_factory=lambda: os.environ.get("WIKIPEDIA_LANG", "en")
)
firecrawl_api_url: str = field(
default_factory=lambda: os.environ.get("FIRECRAWL_API_URL", "").rstrip("/")
)
firecrawl_api_key: str = field(
default_factory=lambda: os.environ.get("FIRECRAWL_API_KEY", "")
)
@property
def firecrawl_enabled(self) -> bool:
return bool(self.firecrawl_api_url)
settings = Settings()