ashare-news-fetcher

Fetches A-share news, policy announcements, and forum sentiment from public Chinese financial sources.

1.4k|216|Updated Oct 22, 2025
One-click install
npx skills add https://github.com/daymade/claude-code-skills --skill ashare-news-fetcher
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ashare-news-fetcher
Source: https://github.com/daymade/claude-code-skills/tree/main/daymade-financial/ashare-news-fetcher
Command: npx skills add https://github.com/daymade/claude-code-skills --skill ashare-news-fetcher

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, beautifulsoup4, akshare, jieba, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Manually checking multiple Chinese financial news sites, regulator portals, and stock forums to gather A-share market intelligence is slow and fragmented. This Skill aggregates news flashes, policy announcements, and retail investor sentiment into structured JSON or Markdown output.

Core Features & Use Cases

  • Multi-source news aggregation: Fetches market flashes from CLS, Wallstreetcn, Jin10, Sina 7x24, and EastMoney, plus policy announcements from CSRC, PBOC, SSE, and MOF.
  • Stock sentiment analysis: Pulls EastMoney Guba forum posts for given stock codes and scores bullish/bearish sentiment with keyword weighting and negation handling.
  • Symbol extraction and filtering: Extracts A-share codes from text via regex and optional akshare/jieba name matching, with keyword filtering and JSON or Markdown output.
  • Use Case: Ask for recent news on stocks 000001 and 600519, and receive a structured digest of market flashes, regulatory announcements, and forum sentiment ready for summarization into a daily report.

Quick Start

Ask the assistant to fetch recent A-share news and sentiment for stock codes 000001 and 600519 from the cn and guba source groups.

Frequently Asked Questions about ashare-news-fetcher

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch A-share news and sentiment for specific stock codes?

Run the fetch_intel.py script with --symbols followed by comma-separated codes and --sources guba for forum sentiment, for example: python scripts/fetch_intel.py --symbols 000001,600519 --sources guba. Omit symbols to fetch market-wide news flashes instead.

What Chinese financial news sources can this tool aggregate?

It fetches market flashes from CLS, Wallstreetcn, Jin10, Sina 7x24, and EastMoney, policy announcements from CSRC, PBOC, SSE, and MOF, and retail sentiment from EastMoney Guba forums. All sources are public endpoints requiring no API key except Jin10.

Why is the Jin10 source skipped when fetching news?

The Jin10 flash API requires an app ID passed via the JIN10_APP_ID environment variable. If it is not set, the script logs a warning and skips that source while continuing to fetch all other cn sources normally.

Does the policy source fetching require beautifulsoup4?

Yes, beautifulsoup4 is required for HTML-based policy sources like PBOC, SSE, and MOF. The CSRC source uses a JSON search API and works without it. Missing beautifulsoup4 only skips HTML sources, not the whole policy group.

How is Guba forum sentiment scored for a stock?

The script matches weighted bullish and bearish keyword lists against post titles, flips polarity when negation prefixes like 不 or 未 appear, and computes a score of (bull - bear) / (bull + bear). Scores above 0.15 are bullish, below -0.15 bearish, otherwise neutral.

What are the limitations of this A-share news fetcher?

It only accesses public, non-paywalled sources and does not provide exchange L1/L2 market data or guaranteed real-time delivery. Public APIs may change without notice, and Guba is sensitive to anti-scraping, so request volume per stock should stay moderate.