Skip to content

feat(fetcher/news): add news_* family with 93 curated sources / 20 sub-genres - #218

Merged
unhappychoice merged 3 commits into
mainfrom
feat/news-fetcher-family
May 12, 2026
Merged

unhappychoice merged 3 commits into
mainfrom
feat/news-fetcher-family

Conversation

@unhappychoice

@unhappychoice unhappychoice commented May 12, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds a news_* fetcher family. Each entry in a static NewsSource table registers as a separate news_<slug> fetcher with a hardcoded feed URL set, so the family is Safety::Safe (no trust-gate friction, drop-in usable in a fresh install) and config can pick among a closed enum of sub-feeds via feed = "<key>" without injecting new destinations.

93 sources / 120 feeds / 20 sub-genres:

Sub-genre Sources
general bbc, guardian, aljazeera, npr, france24, dw, sky_news, cbs
tech arstechnica, techcrunch, theverge, wired, hackernoon, the_register, zdnet, slashdot, venturebeat
gadget engadget, gizmodo, techradar
business ft, marketwatch, yahoo_finance, forbes, economist, fortune
science nature, scientific_american, quanta_magazine, new_scientist, sciencedaily, phys_org
security krebs, bleeping_computer, schneier, the_hacker_news, threatpost, dark_reading, graham_cluley
linux lwn, phoronix, omg_ubuntu, its_foss, distrowatch
gaming polygon, eurogamer, rockpapershotgun, kotaku, ign, pc_gamer, vg247
ai import_ai, ai_news, hugging_face_blog, the_gradient, mit_tr_ai
hardware hackaday, tomshardware, techpowerup, ifixit
web smashing_magazine, css_tricks, a_list_apart, ux_collective
apple 9to5mac, macrumors, daring_fireball, appleinsider
android android_police, 9to5google, android_authority, xda
space spacenews, universe_today, nasa_news, space_com
climate yale_climate, inside_climate, carbon_brief
politics politico, propublica, vox
photography dpreview, petapixel, fstoppers
entertainment variety, deadline, indiewire
music pitchfork, stereogum
crypto coindesk, the_block, decrypt

Six sources (BBC, Guardian, ArsTechnica, TechCrunch, Verge, WIRED) expose multiple sub-feeds; the rest expose a single default feed. Adding more sources = appending one row to sources.rs; registration in mod.rs is automatic.

Refactors rss's HTTP + feed-rs + entry-to-row pipeline into a shared src/fetcher/feed.rs so rss (generic Network feed) and news_* (curated Safe feeds) reuse it. rss behaviour and test surface unchanged.

Live verification

#[ignore]-d test hits every bundled feed in parallel and asserts at least one entry parses; surfaces feed-URL rot via:

cargo test --lib -- --ignored fetcher::news::tests::live_every_bundled_feed_parses

Confirmed locally — all 120 feeds returned ≥5 entries (smallest: Quanta Magazine with 5; largest: Hugging Face Blog with 777).

Source choices worth flagging

  • Sophos Naked Security shut down in 2024, replaced with Graham Cluley (former Sophos blogger, same niche).
  • sidebar.io and designernews.co are both returning connection failures, replaced with UX Collective (uxdesign.cc).
  • Bloomberg / WSJ Markets RSS endpoints have been killed, replaced with MarketWatch + Yahoo Finance for the business category.
  • hugging_face_blog is a corporate-research blog rather than third-party news — included intentionally since HF's blog is the canonical source for HF research releases, distinct from github_blog / cloudflare_blog-style product PR.

Auto-generated reference (preview of /reference/fetchers/news/news_bbc/)

Kind Safety Shapes
cached Safe linked_text_block, image_linked_list, text_block

Options

Option Type Required Default Description
feed string (source-specific key) no first sub-feed of the source Sub-feed key to select (e.g. "world" / "tech"). Run splashboard catalog fetcher news_<source> to list available keys.
count integer (1..=20) no 5 Number of feed entries to display.

Compatible renderers

Shape Renderers
linked_text_block list_links
image_linked_list list_cards
text_block animated_boot, animated_postfx, animated_scanlines, animated_splitflap, animated_wave, list_plain

Test plan

  • cargo fmt --all -- --check
  • cargo clippy --all-targets -- -D warnings
  • cargo test (2126 tests pass, including 13 news tests + 41 unchanged rss tests)
  • cargo test -- --ignored fetcher::news::tests::live_every_bundled_feed_parses (all 120 feeds parse ≥5 entries each)
  • Local smoke via cargo run --bin splashboard with a per-dir .splashboard/dashboard.toml exercising default sub-feed, explicit sub-feed, TextBlock/list_plain, and ImageLinkedList/list_cards paths

Ticks the corresponding news_* checkboxes on #67.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Added a curated catalog of news feed sources across many categories (Tech, Business, Science, Security, Linux, Gaming, AI, Hardware, Web, Apple, Android, Space, Climate, etc.).
    • New "news_*" fetcher family with per-feed options to select sub-feeds and limit entry counts; clear errors for unknown sub-feed keys.
  • Refactor

    • Shared feed processing extracted into a common module used by RSS and news fetchers; unified rendering supports thumbnails, formatted dates/subtitles, and improved text/link handling.
  • Tests

    • Added unit tests and a live smoke verification for bundled feeds.

Review Change Stack

Adds a `news_*` fetcher family, registering one fetcher per entry in a static
`NewsSource` table. Each source hardcodes its feed URL set, so the family is
`Safety::Safe` (no trust-gate friction, drop-in usable in a fresh install) and
config can pick among a closed enum of sub-feeds via `feed = "<key>"` without
the ability to inject new destinations.

The first batch covers 39 sources / 65 feeds across 14 sub-genres: general,
tech, gadget, business, science, security, linux, gaming, ai, hardware, web,
apple, android, space, climate. Six sources (BBC, Guardian, ArsTechnica,
TechCrunch, Verge, WIRED) expose multiple sub-feeds; the rest expose a single
default feed. Adding more sources = appending one `NewsSource` row to
`sources.rs`; registration in `mod.rs` is automatic.

The shared HTTP fetch + feed-rs parse + entry-to-row formatting pipeline moves
from `rss.rs` into `src/fetcher/feed.rs` so both `rss` (generic Network feed)
and `news_*` (curated Safe feeds) reuse it. `rss` behaviour and test surface
are unchanged.

Live smoke test (`#[ignore]`) hits every bundled feed in parallel and asserts
at least one entry parses, so future feed-URL rot surfaces via
`cargo test -- --ignored fetcher::news::tests::live_every_bundled_feed_parses`.

Ticks the news_* checkboxes on #67.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@codecov

codecov Bot commented May 12, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 81.30841% with 100 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.46%. Comparing base (b159a53) to head (8977c7d).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/fetcher/news/mod.rs 80.68% 51 Missing ⚠️
src/fetcher/news/sources.rs 20.68% 23 Missing ⚠️
src/fetcher/feed.rs 90.80% 16 Missing ⚠️
src/fetcher/rss.rs 84.61% 10 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #218      +/-   ##
==========================================
- Coverage   95.59%   95.46%   -0.14%     
==========================================
  Files         156      159       +3     
  Lines       46971    47253     +282     
==========================================
+ Hits        44903    45111     +208     
- Misses       2068     2142      +74     
Files with missing lines Coverage Δ
src/fetcher/mod.rs 99.09% <100.00%> (+<0.01%) ⬆️
src/fetcher/rss.rs 91.10% <84.61%> (-0.11%) ⬇️
src/fetcher/feed.rs 90.80% <90.80%> (ø)
src/fetcher/news/sources.rs 20.68% <20.68%> (ø)
src/fetcher/news/mod.rs 80.68% <80.68%> (ø)

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@coderabbitai

coderabbitai Bot commented May 12, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: fd1024da-3aff-4bd5-aac8-0991e6c63d9c

📥 Commits

Reviewing files that changed from the base of the PR and between 353a211 and 8977c7d.

📒 Files selected for processing (2)
  • src/fetcher/news/mod.rs
  • src/fetcher/news/sources.rs
🚧 Files skipped from review as they are similar to previous changes (2)
  • src/fetcher/news/sources.rs
  • src/fetcher/news/mod.rs

📝 Walkthrough

Walkthrough

Extracts a shared feed pipeline (HTTP client, capped fetching, parsing, rendering, thumbnail extraction), adds a curated news_* family with a static SOURCES catalog and per-source fetchers, exposes feed/news modules, and refactors the RSS fetcher and tests to use the shared utilities.

Changes

Feed Pipeline and News Fetcher Family

Layer / File(s) Summary
Shared feed pipeline
src/fetcher/feed.rs
HTTP client singleton with UA and 10s timeout; fetch_bytes enforces a 5 MB cap with contextual errors; parse_feed wraps feed-rs; render_body and render_image_linked produce crate Body values; thumbnail extraction uses prioritized fallbacks including media:thumbnail, media:content, inline <img> extraction, and summary HTML; date formatting supports timezone/locale; link selection prefers Atom rel="alternate".
News source catalog
src/fetcher/news/sources.rs
Adds NewsCategory, NewsFeed, NewsSource types, helper methods, and a large static SOURCES catalog of curated news sources and per-source feed keys/URLs/labels.
News fetcher trait implementation
src/fetcher/news/mod.rs
Adds NewsFeedFetcher, fetchers() to instantiate one fetcher per SOURCES entry, option parsing (feed, count), cache-key construction, resolve_feed, fetch flow (parse options → resolve sub-feed → clamp count → fetch/parse → render by shape), supported shapes, and comprehensive unit tests plus an ignored parallel live smoke test.
Module exposure and registry integration
src/fetcher/mod.rs
Publishes pub mod feed; and pub mod news; and updates Registry::with_builtins() to register all fetchers returned by news::fetchers().
RSS refactoring to shared utilities
src/fetcher/rss.rs
RssFetcher::fetch now uses feed::{DEFAULT_COUNT, MIN_COUNT, MAX_COUNT}, feed::fetch_bytes, feed::parse_feed, and feed::render_*; tests updated to call shared feed::* helpers.

Estimated Code Review Effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related issues

Possibly related PRs

Poem

🐰 A tiny rabbit sips the feed bouquet,
One client, many sources, fetched today,
Thumbs found, titles cleaned, dates set just right,
News stitched together in the morning light,
Hop, render, serve — and then I munch a byte.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately captures the main addition: a news_* fetcher family with 93 curated sources and 20 sub-genres, which is the primary focus of the changeset.
Docstring Coverage ✅ Passed Docstring coverage is 86.08% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/news-fetcher-family

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/fetcher/feed.rs (1)

1-260: 🛠️ Refactor suggestion | 🟠 Major | 🏗️ Heavy lift

Move feed helper tests into src/fetcher/feed.rs under #[cfg(test)].

This module now owns parsing/formatting logic, but the corresponding helper tests are housed in src/fetcher/rss.rs. Please colocate unit tests with this module and keep cross-module/live behavior tests separate.

As per coding guidelines, "Tests must live next to the code in #[cfg(test)] mod tests blocks; integration and cross-module tests reuse src/render/test_utils.rs."

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/fetcher/feed.rs` around lines 1 - 260, Move the unit tests that exercise
this module's parsing/formatting helpers out of src/fetcher/rss.rs and into
src/fetcher/feed.rs in a #[cfg(test)] mod tests block so the tests live next to
the code they cover; specifically add tests for functions like
thumbnail_url_for, first_inline_image_src, title_or_placeholder,
collapse_whitespace, date_label/format_short, line_text, subtitle_for and
link_for inside that tests module, import any needed test utilities from
src/render/test_utils.rs for cross-module fixtures, and remove or adjust the
now-duplicated helper tests in rss.rs so only integration/cross-module tests
remain there.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/fetcher/feed.rs`:
- Around line 54-73: The current implementation in fetcher/feed.rs calls
res.bytes().await (see res.bytes().await and MAX_BYTES) which buffers the whole
body before checking size; change to read the response as a stream (e.g., using
res.bytes_stream() or an async loop over res.chunk()/Stream of Bytes) and
accumulate into a Vec<u8> while checking the running total against MAX_BYTES on
each chunk, returning FetchError::Failed with the same message when the cap is
exceeded; keep the same error mapping for network/read failures (where you
previously used map_err to create FetchError::Failed) and preserve the status
check logic around res.status() and the existing label text.

In `@src/fetcher/news/sources.rs`:
- Around line 94-120: Replace insecure http BBC feed URLs with https in the
NewsFeed definitions in src/fetcher/news/sources.rs so the curated sources use
TLS; update the url fields for the NewsFeed instances with keys "world", "top",
"business", "tech", "science", and "politics" to start with "https://" instead
of "http://", keeping the rest of each URL and labels unchanged.

---

Outside diff comments:
In `@src/fetcher/feed.rs`:
- Around line 1-260: Move the unit tests that exercise this module's
parsing/formatting helpers out of src/fetcher/rss.rs and into
src/fetcher/feed.rs in a #[cfg(test)] mod tests block so the tests live next to
the code they cover; specifically add tests for functions like
thumbnail_url_for, first_inline_image_src, title_or_placeholder,
collapse_whitespace, date_label/format_short, line_text, subtitle_for and
link_for inside that tests module, import any needed test utilities from
src/render/test_utils.rs for cross-module fixtures, and remove or adjust the
now-duplicated helper tests in rss.rs so only integration/cross-module tests
remain there.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a38a4087-5872-4b88-a661-a42109689d18

📥 Commits

Reviewing files that changed from the base of the PR and between 8807cac and cc69499.

📒 Files selected for processing (5)
  • src/fetcher/feed.rs
  • src/fetcher/mod.rs
  • src/fetcher/news/mod.rs
  • src/fetcher/news/sources.rs
  • src/fetcher/rss.rs

Comment thread src/fetcher/feed.rs
Comment on lines +54 to +73
let res = http()
.get(url.as_str())
.send()
.await
.map_err(|e| FetchError::Failed(format!("{label} request failed: {e}")))?;
let status = res.status();
if !status.is_success() {
return Err(FetchError::Failed(format!("{label} {status}")));
}
let bytes = res
.bytes()
.await
.map_err(|e| FetchError::Failed(format!("{label} read body: {e}")))?;
if bytes.len() > MAX_BYTES {
return Err(FetchError::Failed(format!(
"{label} response too large ({} bytes, cap {MAX_BYTES})",
bytes.len()
)));
}
Ok(bytes.to_vec())

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🌐 Web query:

In reqwest 0.12, does Response::bytes() buffer the entire response body in memory before returning?

💡 Result:

Yes. In reqwest 0.12, Response::bytes buffers/collects the entire response body into memory before returning. Evidence: reqwest’s async Response::bytes implementation calls http_body_util::BodyExt::collect(...) on the response body and then converts the collected buffer into Bytes, which implies the whole body is aggregated before the method completes [1]. The docs for Response::bytes describe it as “Get the full response body as Bytes” [2]. Additionally, http_body_util::BodyExt::collect is defined as collecting “all the DATA frames and trailers,” which is the mechanism reqwest uses under the hood [3]. If you want streaming instead of full buffering, reqwest provides Response::bytes_stream, which returns a Stream of Bytes rather than a fully collected Bytes buffer [2].

Citations:


🏁 Script executed:

head -80 src/fetcher/feed.rs | tail -35

Repository: unhappychoice/splashboard

Length of output: 1169


🏁 Script executed:

rg "MAX_BYTES" src/fetcher/

Repository: unhappychoice/splashboard

Length of output: 1778


🏁 Script executed:

rg "#\[cfg\(test\)\]" src/fetcher/feed.rs

Repository: unhappychoice/splashboard

Length of output: 51


🏁 Script executed:

rg "feed::MAX_BYTES" src/fetcher/rss.rs -A 2 -B 2

Repository: unhappychoice/splashboard

Length of output: 341


🏁 Script executed:

grep -n "#\[cfg(test)\]" src/fetcher/rss.rs | head -5

Repository: unhappychoice/splashboard

Length of output: 86


🏁 Script executed:

wc -l src/fetcher/feed.rs

Repository: unhappychoice/splashboard

Length of output: 93


🏁 Script executed:

rg "chunk\(\)" src/fetcher/ -A 2 -B 2

Repository: unhappychoice/splashboard

Length of output: 51


🏁 Script executed:

rg "streaming\|bytes_stream\|chunk" src/fetcher/ -c

Repository: unhappychoice/splashboard

Length of output: 51


🏁 Script executed:

cat -n src/fetcher/feed.rs | sed -n '40,80p'

Repository: unhappychoice/splashboard

Length of output: 1633


🏁 Script executed:

rg "fn fetch_bytes" src/fetcher/ -A 25

Repository: unhappychoice/splashboard

Length of output: 16064


Enforce MAX_BYTES while streaming, not after full buffering.

Line 64 (res.bytes().await) buffers the entire response before line 67 checks size, so oversized feeds can still consume up to the cap in memory.

Suggested patch
-    let res = http()
+    let mut res = http()
         .get(url.as_str())
         .send()
         .await
         .map_err(|e| FetchError::Failed(format!("{label} request failed: {e}")))?;
     let status = res.status();
@@
-    let bytes = res
-        .bytes()
-        .await
-        .map_err(|e| FetchError::Failed(format!("{label} read body: {e}")))?;
-    if bytes.len() > MAX_BYTES {
-        return Err(FetchError::Failed(format!(
-            "{label} response too large ({} bytes, cap {MAX_BYTES})",
-            bytes.len()
-        )));
-    }
-    Ok(bytes.to_vec())
+    if let Some(len) = res.content_length() {
+        if len as usize > MAX_BYTES {
+            return Err(FetchError::Failed(format!(
+                "{label} response too large ({len} bytes, cap {MAX_BYTES})"
+            )));
+        }
+    }
+    let mut out = Vec::new();
+    while let Some(chunk) = res
+        .chunk()
+        .await
+        .map_err(|e| FetchError::Failed(format!("{label} read body: {e}")))?
+    {
+        if out.len() + chunk.len() > MAX_BYTES {
+            return Err(FetchError::Failed(format!(
+                "{label} response too large (>{MAX_BYTES} bytes)"
+            )));
+        }
+        out.extend_from_slice(&chunk);
+    }
+    Ok(out)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
let res = http()
.get(url.as_str())
.send()
.await
.map_err(|e| FetchError::Failed(format!("{label} request failed: {e}")))?;
let status = res.status();
if !status.is_success() {
return Err(FetchError::Failed(format!("{label} {status}")));
}
let bytes = res
.bytes()
.await
.map_err(|e| FetchError::Failed(format!("{label} read body: {e}")))?;
if bytes.len() > MAX_BYTES {
return Err(FetchError::Failed(format!(
"{label} response too large ({} bytes, cap {MAX_BYTES})",
bytes.len()
)));
}
Ok(bytes.to_vec())
let mut res = http()
.get(url.as_str())
.send()
.await
.map_err(|e| FetchError::Failed(format!("{label} request failed: {e}")))?;
let status = res.status();
if !status.is_success() {
return Err(FetchError::Failed(format!("{label} {status}")));
}
if let Some(len) = res.content_length() {
if len as usize > MAX_BYTES {
return Err(FetchError::Failed(format!(
"{label} response too large ({len} bytes, cap {MAX_BYTES})"
)));
}
}
let mut out = Vec::new();
while let Some(chunk) = res
.chunk()
.await
.map_err(|e| FetchError::Failed(format!("{label} read body: {e}")))?
{
if out.len() + chunk.len() > MAX_BYTES {
return Err(FetchError::Failed(format!(
"{label} response too large (>{MAX_BYTES} bytes)"
)));
}
out.extend_from_slice(&chunk);
}
Ok(out)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/fetcher/feed.rs` around lines 54 - 73, The current implementation in
fetcher/feed.rs calls res.bytes().await (see res.bytes().await and MAX_BYTES)
which buffers the whole body before checking size; change to read the response
as a stream (e.g., using res.bytes_stream() or an async loop over
res.chunk()/Stream of Bytes) and accumulate into a Vec<u8> while checking the
running total against MAX_BYTES on each chunk, returning FetchError::Failed with
the same message when the cap is exceeded; keep the same error mapping for
network/read failures (where you previously used map_err to create
FetchError::Failed) and preserve the status check logic around res.status() and
the existing label text.

Comment thread src/fetcher/news/sources.rs Resolved
Second batch — 53 sources across existing categories + 5 new sub-genres.

Existing categories filled out (+39):
- general (france24, dw, sky_news, cbs)
- tech (the_register, zdnet, slashdot, venturebeat)
- gadget (techradar)
- business (forbes, economist, fortune)
- science (new_scientist, sciencedaily, phys_org)
- security (the_hacker_news, threatpost, dark_reading, graham_cluley)
- linux (its_foss, distrowatch)
- gaming (kotaku, ign, pc_gamer, vg247)
- ai (hugging_face_blog, the_gradient, mit_tr_ai)
- hardware (techpowerup, ifixit)
- web (a_list_apart, ux_collective)
- apple (daring_fireball, appleinsider)
- android (android_authority, xda)
- space (nasa_news, space_com)
- climate (carbon_brief)

New sub-genres (+14):
- politics (politico, propublica, vox)
- photography (dpreview, petapixel, fstoppers)
- entertainment (variety, deadline, indiewire)
- music (pitchfork, stereogum)
- crypto (coindesk, the_block, decrypt)

Sophos Naked Security shut down in 2024 and gets replaced by graham_cluley
(former Sophos blogger, same niche). sidebar.io and designernews.co are both
returning connection failures and get replaced by ux_collective.

All 120 feed URLs (93 sources × sub-feeds) verified live with
`live_every_bundled_feed_parses`; smallest is news_quanta_magazine at 5
entries, largest news_hugging_face_blog at 777.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@unhappychoice unhappychoice changed the title feat(fetcher/news): add news_* family with 39 curated sources feat(fetcher/news): add news_* family with 93 curated sources / 20 sub-genres May 12, 2026
…test

Eight feeds (six BBC sub-feeds + slashdot + distrowatch) were copied verbatim
from the catalog issue's older URLs and were still on plaintext http://. All
of them serve the same RSS over https with a 200 — no functional change, just
loss-prevention if a proxy / corporate firewall strips http.

Tightens `all_sources_are_news_prefixed_and_have_at_least_one_feed` to require
`https://` so a future row added with http:// fails CI.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
src/fetcher/news/sources.rs (1)

94-1291: 🏗️ Heavy lift

Split the SOURCES catalog into smaller per-category modules.

This file is now very large, which will make curation changes harder to review and maintain. Consider moving category slices into separate files and composing SOURCES from them.

As per coding guidelines, "Keep files small, aiming for ~100 lines where practical".

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/fetcher/news/sources.rs` around lines 94 - 1291, The SOURCES constant has
grown too large; split it into smaller modules by category and recompose the
master list. Create separate files (e.g., modules) that each export a
slice/array of NewsSource for a single NewsCategory (using the
NewsSource/NewsFeed structs and the NewsCategory enum), move corresponding
entries from SOURCES into those per-category exports, then update this file to
import and concatenate those slices into the single pub const SOURCES:
&[NewsSource] (or build a lazy/static combined vector if const composition isn't
possible) so maintenance and reviews are per-category.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/fetcher/news/sources.rs`:
- Around line 757-764: Update the feed URL strings to use HTTPS instead of HTTP
for the affected NewsFeed entries: locate the NewsFeed in the "news_slashdot"
declaration (key "main", url "http://rss.slashdot.org/Slashdot/slashdotMain")
and change it to "https://rss.slashdot.org/Slashdot/slashdotMain"; likewise
locate the DistroWatch NewsFeed declaration (the entry referenced around the
"news_distrowatch" symbol) and change its url from "http://..." to
"https://...". Ensure only the URL schemes are changed and no other fields are
modified so feeds continue to function identically but over HTTPS.

---

Nitpick comments:
In `@src/fetcher/news/sources.rs`:
- Around line 94-1291: The SOURCES constant has grown too large; split it into
smaller modules by category and recompose the master list. Create separate files
(e.g., modules) that each export a slice/array of NewsSource for a single
NewsCategory (using the NewsSource/NewsFeed structs and the NewsCategory enum),
move corresponding entries from SOURCES into those per-category exports, then
update this file to import and concatenate those slices into the single pub
const SOURCES: &[NewsSource] (or build a lazy/static combined vector if const
composition isn't possible) so maintenance and reviews are per-category.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 9be98be3-6ddd-4b74-8e2d-7c279b40b870

📥 Commits

Reviewing files that changed from the base of the PR and between cc69499 and 353a211.

📒 Files selected for processing (1)
  • src/fetcher/news/sources.rs

Comment thread src/fetcher/news/sources.rs Resolved
@unhappychoice
unhappychoice merged commit cf407ed into main May 12, 2026
7 checks passed
@unhappychoice
unhappychoice deleted the feat/news-fetcher-family branch May 12, 2026 04:40
unhappychoice added a commit that referenced this pull request May 12, 2026
feat(fetcher/news): add news_bloomberg + news_wsj (correction to #218)
@coderabbitai coderabbitai Bot mentioned this pull request May 12, 2026
5 of 6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant