feat(sources): retire Yahoo and CNBC feeds (#42)

This commit is contained in:
2026-11-25 02:00:25 +01:00
parent 7a342f240d
commit 0503c2653f
41 changed files with 603 additions and 173 deletions

View File

@ -12,9 +12,7 @@ import (
"github.com/tradarr/backend/internal/indices/openfigi"
"github.com/tradarr/backend/internal/models"
"github.com/tradarr/backend/internal/scraper"
"github.com/tradarr/backend/internal/scraper/cnbcbusiness"
"github.com/tradarr/backend/internal/scraper/quanwenrss"
"github.com/tradarr/backend/internal/scraper/yahoofinance"
"github.com/tradarr/backend/internal/server"
)
@ -53,10 +51,8 @@ func main() {
}
feeds := map[string]scraper.Scraper{
models.SourceBloomberg: quanwenrss.New(models.SourceBloomberg, repo, nil),
models.SourceInvesting: quanwenrss.New(models.SourceInvesting, repo, nil),
models.SourceYahooFinance: yahoofinance.New(),
models.SourceCNBCBusiness: cnbcbusiness.New(),
models.SourceBloomberg: quanwenrss.New(models.SourceBloomberg, repo, nil),
models.SourceInvesting: quanwenrss.New(models.SourceInvesting, repo, nil),
}
app := server.New(repo, cfg, server.Dependencies{SummaryDiagnostics: ai.LogSummaryDiagnostic, CompanyCatalog: catalog, LayaRanker: laya, Feeds: feeds, IndexSearcher: openfigi.New(openfigi.Config{APIKey: cfg.OpenFIGIAPIKey, Timeout: cfg.OpenFIGITimeout}, nil), EnableScheduler: true})