Preface¶
When collecting A-share information, bloggers on Taoguba (taoguba.cn / tgb.cn) often provide more detailed post-market reviews than the summaries in market software, but the content is scattered across individual blog pages. Manually opening a blogger’s homepage every day, copying and pasting, and then handing it to a large model for summarization is repetitive and prone to missing updates.
Below is an introduction to the SkillHub community Skill “Taoguba Stock Analysis Selection” (coordinate @user_8c7f0f65/taoguba). It packages “subscribe by blogger, fetch the full text, save to disk” into an Agent-callable capability: you specify in the conversation that you want to subscribe to or fetch Taoguba blogs, and the Agent follows the SKILL instructions to call the crawler script instead of writing crawling logic from scratch every time.
What Is This¶
One-line positioning: Fetch a specified Taoguba blogger’s blog list and full text, for the Agent to perform subscription, incremental updates, or local archiving.
- Maintainer: SkillHub community publisher
user_8c7f0f65, source marked as community, current version 1.0.0, category data-analysis. - Trigger description (SKILL metadata): Called when a user wants to subscribe to or fetch blog content from taoguba.cn.
- Authentication: Tag
requires_api_key=false, no third-party API Key required; fetching historical posts by days requires you to provide your own Taoguba Cookie (see below).
Official entry points:
- SkillHub page: https://www.skillhub.cn/skills/user_8c7f0f65/taoguba
- API coordinate: https://api.skillhub.cn/user_8c7f0f65/taoguba
(Page statistics example: rating 100000, downloads 2831, installs 37, subject to SkillHub display.)
Core Features¶
The capability comes from the packaged SKILL.md and scripts/taoguba_crawler.py (class TaogubaBlogCrawler). The verified key points are as follows.
- Today’s blogs:
get_today_blogs(include_content=True), can include the full body. - Latest N posts:
get_latest_blogs(count=5, include_content=True). - Incremental subscription:
get_new_blogs(include_content=True), works withcrawl_history.jsonto fetch only new posts. - History by days:
get_blogs_by_days(days=7, include_content=True), requires a Cookie. - Save locally:
save_to_file(blogs, filename), default outputs such asblog_YYYY-MM-DD.txt,blog_latest.txt,blog_new.txt, etc.
Fields for a single post include: title, time, link, views, is_jinghua, content.
Python dependencies: requests, beautifulsoup4.
Installation and Enablement¶
First perform an environment check, then install the Skill into the current Agent’s skills directory (if installed in the wrong directory, the Agent will not load it).
1. Install SkillHub CLI (if not already installed)¶
command -v skillhub && skillhub --version
If it is not installed, follow the official instructions (full installation includes the CLI and default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
Installation process description: https://skillhub.cn/install/skillhub.md
2. Install This Skill¶
Search to confirm the coordinate, then install (--dir must point to the current client’s skills directory):
skillhub search taoguba
skillhub install taoguba --namespace user_8c7f0f65 --dir <your skills directory>
Common directories (from SkillHub installation documentation):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
You can also use the SkillHub skill page to let AI install @user_8c7f0f65/taoguba according to https://skillhub.cn/install/skillhub.md.
After installation, restart or refresh the Agent so the new Skill takes effect.
3. Python Dependencies (in the Skill package directory or your workspace)¶
pip install requests beautifulsoup4
The subscription target is configured via the blogger’s user_id (the SKILL example uses 5894557); replace it in the script or in the call code generated by the Agent.
Typical Usage¶
In Agent Conversations¶
It can be triggered when the user’s intent matches the SKILL description, for example:
- “Subscribe to Taoguba blogger 5894557, fetch today’s blogs, and summarize the viewpoints.”
- “Incrementally check whether this blogger has any new posts; if so, save them locally and then summarize.”
The Agent should reference scripts.taoguba_crawler.TaogubaBlogCrawler in the Skill directory, rather than temporarily assembling unmaintained URLs.
Basic Code (No Login Required)¶
Run from the Skill package root directory, or add the package path to PYTHONPATH:
from scripts.taoguba_crawler import TaogubaBlogCrawler
crawler = TaogubaBlogCrawler("5894557")
blogs = crawler.get_today_blogs(include_content=True)
# blogs = crawler.get_latest_blogs(count=5, include_content=True)
# blogs = crawler.get_new_blogs(include_content=True)
crawler.save_to_file(blogs, "output.txt")
Set a Cookie When Historical Days Are Needed¶
from scripts.taoguba_crawler import TaogubaBlogCrawler
crawler = TaogubaBlogCrawler("5894557", cookie="your_cookie_string")
blogs = crawler.get_blogs_by_days(days=7, include_content=True)
crawler.save_to_file(blogs, "blog_7days.txt")
Cookie acquisition steps (from the original SKILL text): Log in to https://www.tgb.cn , copy the request header Cookie from the browser developer tools Network panel, or export it via extensions such as EditThisCookie. You can also choose the menu item “Set Cookie / Cookie Help” in the interactive script.
Command-Line Menu¶
Inside the Skill package:
python scripts/taoguba_crawler.py
The menu includes: today’s blogs, latest blogs, incremental check, recent N days (requires a Cookie), set Cookie, and help.
Use Cases and Notes¶
Who it’s for
- Researchers, quantitative traders, or content organizers who need to incorporate fixed Taoguba bloggers’ post-market reviews into an Agent workflow.
- Those who want a unified script for “today / latest / incremental” to reduce the maintenance cost of handwritten crawlers.
Limitations and Notes
- If the site structure or anti-crawling strategy changes, the community Skill needs to be updated on its own; when scraping fails, check whether the network and the page are still accessible.
- History by days depends on a login Cookie and involves account security: do not submit the Cookie to public repositories or logs; the Skill supports writing a
cookies.txtcache, so pay attention to file permissions. - The output is a text archive and does not constitute investment advice; for compliant use, please follow Taoguba’s terms of service and local regulations.
- The example
user_idis only for demonstration; replace it with the target blogger’s ID for actual subscription.
Ending¶
“Taoguba Stock Analysis Selection” packages the scraping, incremental fetching, and local saving of Taoguba blogger blogs into a standard Skill. With requires_api_key=false, it can get today’s and latest posts running first without a commercial API Key; for longer history, add a Cookie. Installation and coordinates are subject to SkillHub: https://www.skillhub.cn/skills/user_8c7f0f65/taoguba .