scrapling
Skill by fengshao1227
Scrapes web pages and extracts data with the scrapling Python library. It picks a suitable fetcher for each site, including options for Cloudflare or WAF protection, session logins and HTML parsing. It is for users who need to scrape, crawl or batch collect web data.
Install scrapling
Built from the published package, never by AI.
git clone --depth 1 https://github.com/fengshao1227/ccg-workflow /tmp/ccg-workflow && mkdir -p ~/.claude/skills && cp -r /tmp/ccg-workflow/templates/skills/scrapling ~/.claude/skills/scraplingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/fengshao1227/ccg-workflow /tmp/ccg-workflow && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ccg-workflow/templates/skills/scrapling ~/.gemini/antigravity-cli/skills/scraplingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Scrapling is an agent skill that guides an AI assistant through web scraping and data extraction with the scrapling Python library. Before fetching, it checks the installed scrapling version and installs or upgrades it when needed. It then chooses a fetcher from a decision tree: Selector for HTML that is already available, Fetcher for static pages, FetcherSession for HTTP form logins, StealthyFetcher for Cloudflare or WAF protection, and DynamicFetcher for JavaScript-rendered apps.
The skill works from templates and reference files. It checks a site patterns file before each scrape, reuses recorded patterns, and saves new site patterns and cookies to a cookie vault after a run. It is aimed at users who want to scrape, crawl or batch collect pages, and its trigger words include both English and Chinese terms.
Written from the project's SKILL.md and checked against it.
What it can do
- Fetcher selectionChooses Selector, Fetcher, FetcherSession, StealthyFetcher or DynamicFetcher based on the target site.
- Basic HTTP fetchingFetches static pages without anti-bot measures using a Fetcher based on curl_cffi.
- Cloudflare and WAF bypassUses StealthyFetcher, a Camoufox browser, to get past Cloudflare or WAF protection.
- Session loginLogs in through an HTTP form and keeps session cookies with FetcherSession.
- HTML parsingExtracts data from HTML strings or files with Selector, with no network request.
- JavaScript renderingUses DynamicFetcher, a Playwright browser, for SPA pages built with React or Vue.
- Site pattern reuseChecks recorded site patterns before scraping and saves new patterns after each run.
- Cookie vaultStores cookies provided by the user or created during a login for later reuse.
- Version checkRuns pip show on scrapling and installs or upgrades it before scraping.
- Troubleshooting guidePoints to a reference file that matches error messages to causes and fixes.
What you need
- Python with pip
- scrapling[fetchers] package installed via pip
Try asking
- Scrape the product titles and prices from this URL.
- Fetch this Cloudflare-protected page and extract the article text.
- Log in to this site with my cookie and crawl my account pages.
Good to know
- Timeout units differ: seconds for Fetcher and FetcherSession, milliseconds for StealthyFetcher and DynamicFetcher.
- Browser fetcher cookies must include name, value, domain and path fields.
Security check
B- Allowed to use Bash without limitsIn
SKILL.md
Checked automatically: templates/skills/scrapling/SKILL.md, templates/skills/scrapling/templates/basic_fetch.py, templates/skills/scrapling/templates/parse_only.py, templates/skills/scrapling/templates/session_login.py, templates/skills/scrapling/templates/stealth_cloudflare.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadBash
-
SKILL.md4 KB -
references/api-quick-ref.md3 KB -
references/cookie-vault.md1 KB -
references/maintenance.md2 KB -
references/site-patterns.md3 KB
Show all 10 files
-
references/troubleshooting.md3 KB -
templates/basic_fetch.py527 B -
templates/parse_only.py488 B -
templates/session_login.py717 B -
templates/stealth_cloudflare.py677 B
Alternatives to scrapling
All alternatives →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser
scrapling: common questions
Which browser engines does scrapling use?
StealthyFetcher uses a Camoufox browser and DynamicFetcher uses Playwright. The basic Fetcher is based on curl_cffi.
How does the skill handle Cloudflare protection?
For sites with Cloudflare or WAF protection, the skill recommends StealthyFetcher, which the source says gets past Cloudflare automatically. If a plain Fetcher gets a 403 or empty content, the skill escalates to StealthyFetcher.
Where are login cookies stored?
New cookies are saved to references/cookie-vault.md so they can be reused. The source gives different cookie formats for Fetcher types and browser-based fetchers.
How do I install scrapling?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is scrapling free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is scrapling safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use bash without limits). Review the code before you install. How grades work.
What are alternatives to scrapling?
Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.
