paper_firehose.processors.feed_processor¶
RSS feed processing functionality. Fetches RSS feeds, applies regex filters, and manages entry storage.
Classes
|
Processes RSS feeds with regex filtering and database storage. |
- class paper_firehose.processors.feed_processor.FeedProcessor(db_manager, config_manager)[source]¶
Bases:
objectProcesses RSS feeds with regex filtering and database storage.
- Parameters:
db_manager (DatabaseManager)
config_manager (ConfigManager)
- apply_filters(entries_per_feed, topic_name)[source]¶
Apply regex filters to entries and return matched entries.
- prune_old_feed_entries()[source]¶
Delete entries from all_feed_entries.db older than the configured time window.
Keeps the dedup database bounded to the same age horizon used at ingestion (
defaults.time_window_days, default 365 days), so entries older than that window are removed rather than accumulating forever. Returns the number of rows deleted.- Return type: