let mut titles = save::clean_from_csv(titles)?;
titles.shuffle(&mut rng());
dbg!(&titles);
+ println!("Found {} unique titles", titles.len());
for title in titles {
let ranking = analyze_title(&title, &task).await;
}
async fn fetch_rss_feeds(urls: Vec<String>) -> Result<Vec<Channel>, Box<dyn std::error::Error>> {
+ // let mut channels = Vec::new();
+ // for url in urls {
+ // let channel = fetch_rss_feed(&url).await;
+ //
+ // if let Err(e) = channel {
+ // eprintln!("Error fetching {}: {}", url, e);
+ // continue;
+ // } else if let Ok(channell) = channel {
+ // channels.push(channell);
+ // }
+ // }
+
let futures = urls.iter().map(|url| fetch_rss_feed(url));
let results: Vec<Result<Channel, Box<dyn std::error::Error>>> = join_all(futures).await;
Death confirmed from rare and deadly 'brain-eating amoeba' in southern lake,20
"Moon phase today: What the moon will look like on July 25, 2025",18
Three-person IVF technique shown to prevent inherited genetic diseases,5
+Sen. Rick Scott to fly banner urging New Yorkers who ‘hate socialism’ to move to Florida: ‘We have better beaches’,60
+"US, Israel announce targeted killings of terror leaders in Syria and Lebanon",2
+Vanessa Trump hits Southampton with ‘six black SUVs of Secret Service’,80
+Inside Jeffrey Epstein’s cozy relationship with Steve Bannon — and what’s really on his 15 hours of interview tapes,80
+"Ashley Judd, 57, shares body-positive message in swimsuit: ‘We don’t care club’",70
+"Yankees acquire third baseman Ryan McMahon from Rockies, fill major need ahead of postseason push",10
+Trump says it’s ‘no time to be talking about pardons’ for Ghislaine Maxwell as he lands in Scotland ahead of UK and EU talks – live,40
+Terrified passengers 'flew out of their seats' during dramatic Southwest nosedive to avoid mid-air crash,70
+Outrage After Alabama 3-Year-Old Dies in Hot Car While in State’s Care,60