Aller au contenu principal

Agrégateur d'Actualités Providers

The NewsService module aggregates news articles from 7 scraping connectors:

Matrice des Scrapers d'Actualités

Scraper ModuleProvider NameMethodLanguageDeduplication Key
yfinance_news.pyYahoo FinanceJSON API (ticker.news)enURL
google_finance_news.pyGoogle FinanceHTML / Embedded JSONenURL
zonebourse_news.pyZoneBourseHTML BeautifulSoupfrURL
boursorama_news.pyBoursoramaHTML BeautifulSoupfrURL
investing_news.pyInvesting.comHTML ScraperenURL
marketwatch_news.pyMarketWatchHTML ScraperenURL
msn_finance_news.pyMSN FinanceJSON API Endpointen / frURL

Moteur de Déduplication d'Actualités

To eliminate cross-posted articles across multiple news outlets, Fonrex enforces a two-tier deduplication algorithm:

  1. Exact URL Deduplication: Database unique constraint ON CONFLICT (url) DO UPDATE in table news_articles.
  2. Title Similarity Matching: Before inserting new articles into the database feed, Fonrex compares article titles using Python's difflib.SequenceMatcher. Titles with a similarity ratio exceeding NEWS_DEDUP_SIMILARITY (default 0.85) are merged under the earliest publication timestamp.