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
Google News RSS 在 2024–2026 年將新 CBMi protobuf payload 的 field 4 由明文 URL 改為不透明 AU_yqL... token,令傳統 Base64 切片可能只返回亂碼或重導 HTML,無法直接取得原文連結。
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)
- Inspect protobuf varint field 4 — legacy items resolve offline; modern
AU_yqLitems fetchdata-n-a-sganddata-n-a-tsattributes from the splash page. - Exchange those signed parameters via
POST https://news.google.com/_/DotsSplashUi/data/batchexecute?rpcids=Fbv4jeto parsegarturlres.
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:
- Standalone MIT Decoder Repo: https://github.com/truonggiang0111/google-news-url-decoder
-
STDIO MCP Server (
npxready): https://github.com/truonggiang0111/b2b-market-intel-mcp
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