feat: continuous news scrape + 15-min analyst, expand urls.txt
Scraper loops with NEWS_SCRAPE_INTERVAL_S (default 10s after each crawl). Summarizer runs every NEWS_SUMMARIZE_INTERVAL_S (default 900) over the last 15 minutes of articles. Feed list replaced from the k8s scrapy-urls configmap (334 sources).
This commit is contained in:
parent
eb883f0801
commit
8643153954
11 changed files with 434 additions and 376 deletions
|
|
@ -8,7 +8,7 @@ import re
|
|||
class NewsRSSSpider(Spider):
|
||||
"""Crawl the curated news sources in urls.txt and extract articles.
|
||||
|
||||
urls.txt contains 257 news HOMEPAGES (not feed URLs), so this spider
|
||||
urls.txt contains curated news HOMEPAGES and RSS/Atom feeds, so this spider
|
||||
implements feed autodiscovery: it fetches each start URL, finds the
|
||||
RSS/Atom feed link (`<link rel="alternate" type="application/rss+xml">`
|
||||
or a visible /rss|/feed link), follows it, and then follows each feed
|
||||
|
|
|
|||
Loading…
Reference in a new issue