feat(sources): retire Yahoo and CNBC feeds (#42)
This commit is contained in:
@ -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})
|
||||
|
||||
Reference in New Issue
Block a user