跳到正文
DEV Community· truonggiang0111·· 44 分鐘前AI 評分60

Google News RSS Base64 解碼於 2024–2026 年失效的原因及 AI RAG、MCP 修復方法

Why Google News RSS base64 Decoding Broke (2024–2026) — And How to Fix It for AI RAG & MCP

AI 導讀

Google News RSS 在 2024–2026 年將新 CBMi protobuf payload 的 field 4 由明文 URL 改為不透明 AU_yqL... token,令傳統 Base64 切片可能只返回亂碼或重導 HTML,無法直接取得原文連結。

正文

truonggiang0111

If you've built an AI news agent, market monitor, or RAG pipeline using Google News RSS, you've probably watched your scraper silently break on <link> tags like:

https://news.google.com/rss/articles/CBMi...

In 2024–2026, Google shifted new CBMi protobuf payloads from embedding plain https://... URLs in field 4 to embedding opaque AU_yqL... tokens. Classic base64 slices only return garbage or redirect HTML instead of the actual Bloomberg, TechCrunch, or Reuters article.

How Modern Decoding Works (Fbv4je)

  1. Inspect protobuf varint field 4 — legacy items resolve offline; modern AU_yqL items fetch data-n-a-sg and data-n-a-ts attributes from the splash page.
  2. Exchange those signed parameters via POST https://news.google.com/_/DotsSplashUi/data/batchexecute?rpcids=Fbv4je to parse garturlres.

I open-sourced both a zero-dependency CLI (decode-gnews-url.mjs) and a zero-dep MCP STDIO server (npx -y github:truonggiang0111/b2b-market-intel-mcp) so Claude Desktop, Cursor, and Claude Code can test single URLs with zero API keys:

Scaling to 50–1,000+ Articles + Clean Markdown + PR Signals (Zero Proxies)

When running batch RAG digests, you don't want raw HTML bloating your LLM context window. Our 256MB cloud extractor outputs clean Markdown, verified publisher URLs (url + urlDecoded), compact per-item agentSummary, and a single RUN_SUMMARY JSON record (runs in ~2.3s–6.5s, free to test with Apify's built-in $5/month credit):

{
  "mcpServers": {
    "google-news-real-url": {
      "url": "https://mcp.apify.com?actors=ttyan0111/google-news-ai-article-extractor"
    }
  }
}

Or install the portable SKILL.md workflow:

npx skills add truonggiang0111/b2b-ai-mcp-skills --skill google-news-real-url-rag

Full empirical benchmark & Python snippet: https://truonggiang0111.github.io/mcp/google-news-rss-url-decoder/

來源:DEV Community · dev.to