Optional Firecrawl scraping of the full featured article
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:
1 parent
dc6057fda6
commit
913759918b
5 files changed
+117
-10
No files matched your search
@@ -15,8 +15,11 @@ services:
|
||||
GENERATE_MINUTE: ${GENERATE_MINUTE:-0}
|
||||
MAX_ATTEMPTS: ${MAX_ATTEMPTS:-3}
|
||||
RETRY_MINUTES: ${RETRY_MINUTES:-15}
|
||||
SLOW_RETRY_MINUTES: ${SLOW_RETRY_MINUTES:-60}
|
||||
WIKIPEDIA_LANG: ${WIKIPEDIA_LANG:-en}
|
||||
TRMNL_TOKEN: ${TRMNL_TOKEN:-}
|
||||
FIRECRAWL_API_URL: ${FIRECRAWL_API_URL:-}
|
||||
FIRECRAWL_API_KEY: ${FIRECRAWL_API_KEY:-}
|
||||
DB_PATH: /data/jokes.db
|
||||
volumes:
|
||||
- jokes-data:/data
|
||||
|
||||
Reference in new issue
Block a user