XScrapy AI-Native Generic Web Scraper Engine
Paste the following prompt into your AI chat to install this skill:
Please install @user_e263a450/x-scrapy according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem
Web pages lack a uniform schema. Product details, news articles, forum posts, and documentation pages expose fields in different DOM structures, so hand-written selectors are brittle and time-consuming. x-scrapy targets the narrow problem of turning a URL into clean, structured JSON with less per-site boilerplate.
How It Works
The workflow is:
- Detect the page type from the target URL and match a scene template such as
ecommerce,news,social,forum,docs, orlisting. - Extract fields from the template, for example
title,price,in_stock, andspecsfor product pages, orauthor,article_body, andpublished_datefor articles. - Use the CLI, Python API, or single-page extraction mode, with optional proxy, anti-detection, and JS rendering settings.
- When rules miss information, enable AI extraction: analyze page semantics, extract requested fields, fill gaps left by rules, and return results with a
confidence_score.
Boundaries
- Best for list pages, detail pages, news pages, and documentation pages where the goal is stable JSON output.
- SPA or AJAX-heavy pages may require JS rendering; otherwise the engine may capture only the initial HTML shell.
- AI extraction incurs external API costs, so it should be used when rule-based extraction is insufficient.
- Results include confidence scores; low-confidence fields should be reviewed. Use it in line with target sites'
robots.txtand terms of use.
Use Cases
- E-commerce competitor analysis: extract product title, price, stock, and specs from detail pages into JSON for comparison.
- News aggregation: batch-extract headline, author, publish time, and body from news pages into standard JSON.
- Documentation capture: collect section headings, code blocks, and internal links from API docs into structured data.
- Forum monitoring: scrape post title, author, body, and comment count for downstream trend analysis.
Best For
- Data analysts doing competitor price tracking: extract price, stock, and seller fields from multiple product pages daily.
- Content operations teams maintaining news portals: batch-extract headline, author, body, and tags from articles.
- Backend engineers building knowledge pipelines: convert documentation sections, code blocks, and links into JSON.
- Web data engineers owning scraper strategy: configure proxies, JS rendering, and AI extraction for complex pages.
Related Skills
Scrapes JD search results for product titles, prices, sales, and stores, then exports verified data to UTF-8 CSV.
An A-share market monitor using Sina Finance API for real-time quotes, price and percentage alerts, daily logging, and scheduled checks.
Turn pasted or queried Xiaohongshu notes into a research memo covering title patterns, structure, quoted comments, and follow-up angles; public lookups are optional and confirmed before paid execution.
A universal base component that automatically launches the Edge browser and connects the BrowserSkill extension, ensuring readiness for web scraping and browser automation tasks.