---
name: agentforce314-scrape-cloudflare-site
description: "Fetch web pages (e.g. novel chapters) that return a Cloudflare \"Just a moment\" page to curl or headless Chrome."
license: "MIT"
metadata:
  decimalai-skill-id: "45907efd-874e-4720-bf87-be378e8c8ba9"
  decimalai-version-id: "f2929546-b439-4083-b4e9-bd8ea52e9ef6"
  decimalai-version: "1"
  decimalai-body-sha256: "ad90def6e8c9200a4d507761697d79da8dcbef58df75a6458aa91e504a96020e"
  decimalai-name: "agentforce314/scrape-cloudflare-site"
  decimalai-format: "1"
  decimalai-invocation: "model"
  decimalai-category: "data"
  decimalai-source: "https://app.decimal.ai/s/agentforce314-scrape-cloudflare-site@1/SKILL.md"
---
# Scraping pages behind Cloudflare

Do NOT try direct curl or headless Chrome first; both get the challenge page and waste turns.

1. Fetch through the reader proxy: `curl -s "https://r.jina.ai/<full original URL>"`. The real text follows a `Markdown Content:` marker.
2. Write ONE Python script that loops over all pages and saves each to disk, rather than one tool call per page. Skip files already saved so reruns resume.
3. Sleep ~1s between requests. A ~240-byte body or `RateLimitTriggeredError` means HTTP 429: wait 10-30s and retry.
4. Multi-page chapters may continue at `<name>_2.html`; fetch and join them.
5. After the loop, print count and byte size per file; re-fetch any that are tiny.
6. If the proxy returns a 403 `AbuseAlleviationError` saying "blocked until <time>", STOP. Do not poll or loop; every retry extends the block. Tell the user the time and finish.
