Synthetic heading.
Synthetic initial paragraph.
Final editorial paragraph.
package yahoofinance
import (
"context"
"fmt"
"io"
"net/http"
"strings"
"testing"
"time"
"github.com/tradarr/backend/internal/scraper"
)
const yahooFixtureURL = "https://finance.yahoo.com/news/fixture.html"
type yahooIngestionTransport struct {
t *testing.T
html string
articleURL string
date bool
rssOnly bool
}
func (f yahooIngestionTransport) RoundTrip(r *http.Request) (*http.Response, error) {
articleURL := f.articleURL
if articleURL == "" {
articleURL = yahooFixtureURL
}
var body string
if r.URL.Host == "feeds.finance.yahoo.com" {
pubDate := ""
if f.date {
pubDate = " Synthetic initial paragraph. Final editorial paragraph.Synthetic heading.
Final editorial paragraph.