Web Scraping and Content Understanding
Paste the following prompt into your AI chat to install this skill:
Install @user_f12a44b7/cnbll-self-dev-web-scraper into the current AI assistant using the official guide at https://skillhub.cn/install/skillhub.md.
About this skill
Problem
Web scraping often stalls on how to fetch, clean, and actually use page content. Feeding raw HTML to an LLM wastes tokens and increases entity-extraction noise; regex alone struggles with natural fields such as body text, title, author, and date; bulk crawling also tends to hit anti-bot controls, rate limits, encoding issues, and lost progress.
How It Works
The skill turns the job into auditable Python scripts, YAML configs, and JSON output: it first uses lightweight HTTP requests and page signals to detect article-like pages, then escalates to text cleaning, bulk crawling, Playwright rendering, and optional LLM entity extraction. The LLM only sees cleaned text, not raw HTML; CSS selectors are kept configurable so site changes are easier to maintain.
Boundaries
It fits public web pages, article bodies, metadata, and simple entity extraction; it is not intended to bypass hard paywalls, authenticated pages, or unauthorized logins. It should respect robots.txt, apply rate limiting, and check encoding. If the optional entity-extraction stage is used, OPENROUTER_API_KEY should be set in the runtime environment, not hard-coded into generated scripts.
Use Cases
- Batch-extract article bodies and titles from multiple public news sites into JSON for downstream analysis.
- Structure metadata, publish dates, and authors from industry report web pages for storage and comparison.
- Render dynamic public pages with Playwright and extract names, prices, and specs into structured output.
- Extract entities from cleaned article text and generate fallback-safe JSON results.
Best For
- Data engineers who need cleaned public web text ready for analysis.
- Product analysts building structured comparisons from public competitor pages.
- Scraping maintainers who batch-process metadata from news or blog articles.
- Application developers adding entity extraction over cleaned article text.
Related Skills
Query Douyin creator videos, image/text posts, and short-drama series by sec_user_id or profile URL with paginated list retrieval.
Uses CDP-controlled browser screenshots of Douyin video pages and multimodal AI to extract teaching points into a Markdown report.
Query Douyin hot searches and works with SocialDataX API or MCP tools, supporting keyword, sorting, time range, duration, content type, and pagination.
Fetch the GitHub Trending leaderboard and generate fact-grounded project analysis, trend hypotheses, and directional insights.