[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M739JJFGVZG3XW8N5AST1VAS":3,"skill-same:01M739JJFGVZG3XW8N5AST1VAS":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":43,"ownerDescription":6,"updatedAt":44,"install":45,"resources":58},"01M739JJFGVZG3XW8N5AST1VAS","headless-web-scraping",null,"Extract data from web pages using the scrapling Python library — select the appropriate fetcher tier (HTTP, stealth Chromium, or full browser automation) based on target site defenses, configure headless browsing, and extract structured data with CSS selectors. Use when WebFetch is insufficient for JS-rendered pages, anti-bot-protected sites, or structured multi-element extraction requiring DOM traversal.","roohe\u002Fagentic-super-skills","roohe","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99054084?v=4","01M734WCDFP6RZVT5CNM00QR26","01M734WCE4BD0T4NZS5PCV9V5F",10,"MIT","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fheadless-web-scraping\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: headless-web-scraping\nlocale: caveman-lite\nsource_locale: en\nsource_commit: 82c77053\ntranslator: \"Julius Brussee homage — caveman\"\ntranslation_date: \"2026-04-24\"\ndescription: >\n  Extract data from web pages using the scrapling Python library — select the\n  appropriate fetcher tier (HTTP, stealth Chromium, or full browser automation)\n  based on target site defenses, configure headless browsing, and extract\n  structured data with CSS selectors. Use when WebFetch is insufficient for\n  JS-rendered pages, anti-bot-protected sites, or structured multi-element\n  extraction requiring DOM traversal.\nlicense: MIT\nallowed-tools: Bash Read Write Grep Glob\nmetadata:\n  author: Philipp Thoss\n  version: \"1.0\"\n  domain: web-scraping\n  complexity: intermediate\n  language: Python\n  tags: web-scraping, headless, scrapling, automation, data-extraction\n---\n\n# Headless Web Scraping\n\nExtract data from web pages that resist simple HTTP requests — JS-rendered content,\nCloudflare-protected sites, and dynamic SPAs — using scrapling's three-tier fetcher\narchitecture and CSS-based data extraction.\n\n## When to Use\n\n- Target page requires JavaScript rendering (SPA, React, Vue)\n- Site has anti-bot protections (Cloudflare Turnstile, TLS fingerprinting)\n- You need structured extraction of multiple elements via CSS selectors\n- Simple `WebFetch` or `requests.get()` returns empty or blocked responses\n- Extracting tabular data, link lists, or repeated DOM structures at scale\n\n## Inputs\n\n- **Required**: Target URL or list of URLs to scrape\n- **Required**: Data to extract (CSS selectors, field names, or description of target elements)\n- **Optional**: Fetcher tier override (default: auto-select based on site behavior)\n- **Optional**: Output format (default: JSON; alternatives: CSV, Python dict)\n- **Optional**: Rate limit delay in seconds (default: 1)\n\n## Procedure\n\n### Step 1: Select Fetcher Tier\n\nDetermine which scrapling fetcher matches the target site's defenses.\n\n```python\n# Decision matrix:\n# 1. Fetcher        — static HTML, no JS, no anti-bot (fastest)\n# 2. StealthyFetcher — Cloudflare\u002FTurnstile, TLS fingerprint checks\n# 3. DynamicFetcher  — JS-rendered SPAs, click\u002Fscroll interactions\n\n# Quick probe: try Fetcher first, escalate on failure\nfrom scrapling import Fetcher\n\nfetcher = Fetcher()\nresponse = fetcher.get(\"https:\u002F\u002Fexample.com\u002Ftarget-page\")\n\nif response.status == 200 and response.get_all_text():\n    print(\"Fetcher tier sufficient\")\nelse:\n    print(\"Escalate to StealthyFetcher or DynamicFetcher\")\n```\n\n| Signal | Recommended Tier |\n|--------|-----------------|\n| Static HTML, no protection | `Fetcher` |\n| 403\u002F503, Cloudflare challenge page | `StealthyFetcher` |\n| Page loads but content area is empty | `DynamicFetcher` |\n| Need to click buttons or scroll | `DynamicFetcher` |\n| altcha CAPTCHA present | None (cannot be automated) |\n\n**Got:** One of the three tiers is identified. For most modern sites, `StealthyFetcher` is the correct starting point.\n\n**If fail:** If all three tiers return blocked responses, check whether the site uses altcha CAPTCHA (proof-of-work challenge that cannot be bypassed). If so, document the limitation and provide manual extraction instructions instead.\n\n### Step 2: Configure the Fetcher\n\nSet up the selected fetcher with appropriate options.\n\n```python\nfrom scrapling import Fetcher, StealthyFetcher, DynamicFetcher\n\n# Tier 1: Fast HTTP with TLS fingerprint impersonation\nfetcher = Fetcher()\nfetcher.configure(\n    timeout=30,\n    retries=3,\n    follow_redirects=True\n)\n\n# Tier 2: Headless Chromium with anti-detection\nfetcher = StealthyFetcher()\nfetcher.configure(\n    headless=True,\n    timeout=60,\n    network_idle=True  # wait for all network requests to settle\n)\n\n# Tier 3: Full browser automation\nfetcher = DynamicFetcher()\nfetcher.configure(\n    headless=True,\n    timeout=90,\n    network_idle=True,\n    wait_selector=\"div.results\"  # wait for specific element before extracting\n)\n```\n\n**Got:** Fetcher instance is configured and ready. No errors on instantiation. For `StealthyFetcher` and `DynamicFetcher`, a Chromium binary is available (scrapling manages this automatically on first run).\n\n**If fail:**\n- `playwright` or browser binary not found -- run `python -m playwright install chromium`\n- Timeout on `configure()` -- increase timeout value or check network connectivity\n- Import error -- install scrapling: `pip install scrapling`\n\n### Step 3: Fetch and Extract Data\n\nNavigate to the target URL and extract structured data using CSS selectors.\n\n```python\n# Fetch the page\nresponse = fetcher.get(\"https:\u002F\u002Fexample.com\u002Ftarget-page\")\n\n# Single element extraction\ntitle = response.find(\"h1.page-title\")\nif title:\n    print(title.get_all_text())\n\n# Multiple elements\nitems = response.find_all(\"div.result-item\")\nfor item in items:\n    name = item.find(\"span.name\")\n    price = item.find(\"span.price\")\n    print(f\"{name.get_all_text()}: {price.get_all_text()}\")\n\n# Get attribute values\nlinks = response.find_all(\"a.product-link\")\nurls = [link.get(\"href\") for link in links]\n\n# Get raw HTML content of an element\ndetail_html = response.find(\"div.description\").html_content\n```\n\n**Key API reference:**\n\n| Method | Purpose |\n|--------|---------|\n| `response.find(\"selector\")` | First matching element |\n| `response.find_all(\"selector\")` | All matching elements |\n| `element.get(\"attr\")` | Attribute value (href, src, data-*) |\n| `element.get_all_text()` | All text content, recursively |\n| `element.html_content` | Raw inner HTML |\n\n**Got:** Extracted data matches the visible page content. Elements are non-None and text content is non-empty for populated pages.\n\n**If fail:**\n- `find()` returns `None` -- inspect the actual HTML (`response.html_content`) to verify the selector; the page may use different class names than expected\n- Empty text from `get_all_text()` -- content may be inside shadow DOM or an iframe; try `DynamicFetcher` with a `wait_selector`\n- Do NOT use `.css_first()` -- this is not part of the scrapling API (common confusion with other libraries)\n\n### Step 4: Handle Failures and Edge Cases\n\nImplement fallback logic for CAPTCHA detection, empty responses, and session requirements.\n\n```python\nimport time\n\ndef scrape_with_fallback(url, selector):\n    \"\"\"Try each fetcher tier in order, with CAPTCHA detection.\"\"\"\n    tiers = [\n        (\"Fetcher\", Fetcher),\n        (\"StealthyFetcher\", StealthyFetcher),\n        (\"DynamicFetcher\", DynamicFetcher),\n    ]\n\n    for tier_name, tier_class in tiers:\n        fetcher = tier_class()\n        fetcher.configure(headless=True, timeout=60)\n\n        try:\n            response = fetcher.get(url)\n        except Exception as error:\n            print(f\"{tier_name} failed: {error}\")\n            continue\n\n        # Detect CAPTCHA \u002F challenge pages\n        page_text = response.get_all_text().lower()\n        if \"altcha\" in page_text or \"proof of work\" in page_text:\n            print(f\"altcha CAPTCHA detected -- cannot automate\")\n            return None\n\n        if response.status == 403 or response.status == 503:\n            print(f\"{tier_name} blocked (HTTP {response.status}), escalating\")\n            continue\n\n        result = response.find(selector)\n        if result and result.get_all_text().strip():\n            return result.get_all_text()\n\n        print(f\"{tier_name} returned empty content, escalating\")\n\n    print(\"All tiers exhausted. Manual extraction required.\")\n    return None\n```\n\n**Got:** Function returns extracted text on success, or `None` with a diagnostic message when all tiers fail. CAPTCHA pages are detected and reported rather than retried indefinitely.\n\n**If fail:**\n- All tiers return 403 -- the site blocks all automated access (common with WIPO, TMview, some government databases); document the URL as requiring manual access\n- Timeout errors -- the page may be behind a slow CDN; increase timeout to 120s\n- Session\u002Fcookie errors -- the site may require login; add cookie handling or authenticate first\n\n### Step 5: Rate Limiting and Ethical Scraping\n\nImplement delays and respect site policies before running at scale.\n\n```python\nimport time\nimport urllib.robotparser\n\ndef check_robots_txt(base_url, target_path):\n    \"\"\"Check if scraping is allowed by robots.txt.\"\"\"\n    rp = urllib.robotparser.RobotFileParser()\n    rp.set_url(f\"{base_url}\u002Frobots.txt\")\n    rp.read()\n    return rp.can_fetch(\"*\", f\"{base_url}{target_path}\")\n\ndef scrape_urls(urls, selector, delay=1.0):\n    \"\"\"Scrape multiple URLs with rate limiting.\"\"\"\n    results = []\n    fetcher = StealthyFetcher()\n    fetcher.configure(headless=True, timeout=60)\n\n    for url in urls:\n        response = fetcher.get(url)\n        data = response.find(selector)\n        if data:\n            results.append(data.get_all_text())\n\n        time.sleep(delay)  # respect the server\n\n    return results\n```\n\n**Ethical scraping checklist:**\n\n1. Check `robots.txt` before scraping -- respect `Disallow` directives\n2. Use a minimum 1-second delay between requests\n3. Identify your scraper with a descriptive User-Agent when possible\n4. Do not scrape personal data without legal basis\n5. Cache responses locally to avoid redundant requests\n6. Stop immediately if you receive a 429 (Too Many Requests)\n\n**Got:** Scraping runs at a controlled rate. `robots.txt` is checked before bulk operations. No 429 responses are triggered.\n\n**If fail:**\n- 429 Too Many Requests -- increase delay to 3-5 seconds, or stop and retry later\n- `robots.txt` disallows the path -- respect the directive; do not override it\n- IP ban -- stop scraping immediately; the rate limiting was insufficient. If access is legitimate (public data, ToS-permitted, robots.txt-respected) and you must continue, see [rotate-scraping-proxies](..\u002Frotate-scraping-proxies\u002FSKILL.md) for network-layer escalation\n\n## Validation\n\n- [ ] Correct fetcher tier is selected (not over- or under-powered for the target)\n- [ ] `configure()` method is used (not deprecated constructor kwargs)\n- [ ] CSS selectors match actual page structure (verified against page source)\n- [ ] `.find()` \u002F `.find_all()` API is used (not `.css_first()` or other library methods)\n- [ ] CAPTCHA detection is in place (altcha pages are reported, not retried)\n- [ ] Rate limiting is implemented for multi-URL scraping\n- [ ] `robots.txt` is checked before bulk operations\n- [ ] Extracted data is non-empty and structurally correct\n\n## Pitfalls\n\n- **Using `.css_first()` instead of `.find()`**: scrapling uses `.find()` and `.find_all()` for element selection -- `.css_first()` belongs to a different library and will raise `AttributeError`\n- **Starting with DynamicFetcher**: Try `Fetcher` first, then escalate -- `DynamicFetcher` is 10-50x slower due to full browser startup\n- **Constructor kwargs instead of `configure()`**: scrapling v0.4.x deprecated passing options to the constructor; use the `configure()` method\n- **Ignoring altcha CAPTCHA**: No fetcher tier can solve altcha proof-of-work challenges -- detect them early and fall back to manual instructions\n- **No rate limiting**: Even if the site does not return 429, aggressive scraping can get your IP banned or cause service degradation\n- **Assuming stable selectors**: Website CSS classes change frequently -- validate selectors against current page source before each scraping campaign\n\n## Related Skills\n\n- [rotate-scraping-proxies](..\u002Frotate-scraping-proxies\u002FSKILL.md) -- network-layer escalation when client-side stealth is exhausted and IP bans block legitimate, ToS-permitted access\n- [use-graphql-api](..\u002Fuse-graphql-api\u002FSKILL.md) -- structured API queries when the site offers a GraphQL endpoint (preferred over scraping)\n- [serialize-data-formats](..\u002Fserialize-data-formats\u002FSKILL.md) -- converting extracted data to JSON, CSV, or other formats\n- [deploy-searxng](..\u002Fdeploy-searxng\u002FSKILL.md) -- self-hosted search engine that aggregates results from multiple sources\n- [forage-solutions](..\u002Fforage-solutions\u002FSKILL.md) -- broader pattern for gathering information from diverse sources\n\n\u003C!-- Keep under 500 lines. Extract large examples to references\u002FEXAMPLES.md if needed. -->\n","# Headless Web Scraping\n\nExtract data from web pages that resist simple HTTP requests — JS-rendered content,\nCloudflare-protected sites, and dynamic SPAs — using scrapling's three-tier fetcher\narchitecture and CSS-based data extraction.\n\n## When to Use\n\n- Target page requires JavaScript rendering (SPA, React, Vue)\n- Site has anti-bot protections (Cloudflare Turnstile, TLS fingerprinting)\n- You need structured extraction of multiple elements via CSS selectors\n- Simple `WebFetch` or `requests.get()` returns empty or blocked responses\n- Extracting tabular data, link lists, or repeated DOM structures at scale\n\n## Inputs\n\n- **Required**: Target URL or list of URLs to scrape\n- **Required**: Data to extract (CSS selectors, field names, or description of target elements)\n- **Optional**: Fetcher tier override (default: auto-select based on site behavior)\n- **Optional**: Output format (default: JSON; alternatives: CSV, Python dict)\n- **Optional**: Rate limit delay in seconds (default: 1)\n\n## Procedure\n\n### Step 1: Select Fetcher Tier\n\nDetermine which scrapling fetcher matches the target site's defenses.\n\n```python\n# Decision matrix:\n# 1. Fetcher        — static HTML, no JS, no anti-bot (fastest)\n# 2. StealthyFetcher — Cloudflare\u002FTurnstile, TLS fingerprint checks\n# 3. DynamicFetcher  — JS-rendered SPAs, click\u002Fscroll interactions\n\n# Quick probe: try Fetcher first, escalate on failure\nfrom scrapling import Fetcher\n\nfetcher = Fetcher()\nresponse = fetcher.get(\"https:\u002F\u002Fexample.com\u002Ftarget-page\")\n\nif response.status == 200 and response.get_all_text():\n    print(\"Fetcher tier sufficient\")\nelse:\n    print(\"Escalate to StealthyFetcher or DynamicFetcher\")\n```\n\n| Signal | Recommended Tier |\n|--------|-----------------|\n| Static HTML, no protection | `Fetcher` |\n| 403\u002F503, Cloudflare challenge page | `StealthyFetcher` |\n| Page loads but content area is empty | `DynamicFetcher` |\n| Need to click buttons or scroll | `DynamicFetcher` |\n| altcha CAPTCHA present | None (cannot be automated) |\n\n**Got:** One of the three tiers is identified. For most modern sites, `StealthyFetcher` is the correct starting point.\n\n**If fail:** If all three tiers return blocked responses, check whether the site uses altcha CAPTCHA (proof-of-work challenge that cannot be bypassed). If so, document the limitation and provide manual extraction instructions instead.\n\n### Step 2: Configure the Fetcher\n\nSet up the selected fetcher with appropriate options.\n\n```python\nfrom scrapling import Fetcher, StealthyFetcher, DynamicFetcher\n\n# Tier 1: Fast HTTP with TLS fingerprint impersonation\nfetcher = Fetcher()\nfetcher.configure(\n    timeout=30,\n    retries=3,\n    follow_redirects=True\n)\n\n# Tier 2: Headless Chromium with anti-detection\nfetcher = StealthyFetcher()\nfetcher.configure(\n    headless=True,\n    timeout=60,\n    network_idle=True  # wait for all network requests to settle\n)\n\n# Tier 3: Full browser automation\nfetcher = DynamicFetcher()\nfetcher.configure(\n    headless=True,\n    timeout=90,\n    network_idle=True,\n    wait_selector=\"div.results\"  # wait for specific element before extracting\n)\n```\n\n**Got:** Fetcher instance is configured and ready. No errors on instantiation. For `StealthyFetcher` and `DynamicFetcher`, a Chromium binary is available (scrapling manages this automatically on first run).\n\n**If fail:**\n- `playwright` or browser binary not found -- run `python -m playwright install chromium`\n- Timeout on `configure()` -- increase timeout value or check network connectivity\n- Import error -- install scrapling: `pip install scrapling`\n\n### Step 3: Fetch and Extract Data\n\nNavigate to the target URL and extract structured data using CSS selectors.\n\n```python\n# Fetch the page\nresponse = fetcher.get(\"https:\u002F\u002Fexample.com\u002Ftarget-page\")\n\n# Single element extraction\ntitle = response.find(\"h1.page-title\")\nif title:\n    print(title.get_all_text())\n\n# Multiple elements\nitems = response.find_all(\"div.result-item\")\nfor item in items:\n    name = item.find(\"span.name\")\n    price = item.find(\"span.price\")\n    print(f\"{name.get_all_text()}: {price.get_all_text()}\")\n\n# Get attribute values\nlinks = response.find_all(\"a.product-link\")\nurls = [link.get(\"href\") for link in links]\n\n# Get raw HTML content of an element\ndetail_html = response.find(\"div.description\").html_content\n```\n\n**Key API reference:**\n\n| Method | Purpose |\n|--------|---------|\n| `response.find(\"selector\")` | First matching element |\n| `response.find_all(\"selector\")` | All matching elements |\n| `element.get(\"attr\")` | Attribute value (href, src, data-*) |\n| `element.get_all_text()` | All text content, recursively |\n| `element.html_content` | Raw inner HTML |\n\n**Got:** Extracted data matches the visible page content. Elements are non-None and text content is non-empty for populated pages.\n\n**If fail:**\n- `find()` returns `None` -- inspect the actual HTML (`response.html_content`) to verify the selector; the page may use different class names than expected\n- Empty text from `get_all_text()` -- content may be inside shadow DOM or an iframe; try `DynamicFetcher` with a `wait_selector`\n- Do NOT use `.css_first()` -- this is not part of the scrapling API (common confusion with other libraries)\n\n### Step 4: Handle Failures and Edge Cases\n\nImplement fallback logic for CAPTCHA detection, empty responses, and session requirements.\n\n```python\nimport time\n\ndef scrape_with_fallback(url, selector):\n    \"\"\"Try each fetcher tier in order, with CAPTCHA detection.\"\"\"\n    tiers = [\n        (\"Fetcher\", Fetcher),\n        (\"StealthyFetcher\", StealthyFetcher),\n        (\"DynamicFetcher\", DynamicFetcher),\n    ]\n\n    for tier_name, tier_class in tiers:\n        fetcher = tier_class()\n        fetcher.configure(headless=True, timeout=60)\n\n        try:\n            response = fetcher.get(url)\n        except Exception as error:\n            print(f\"{tier_name} failed: {error}\")\n            continue\n\n        # Detect CAPTCHA \u002F challenge pages\n        page_text = response.get_all_text().lower()\n        if \"altcha\" in page_text or \"proof of work\" in page_text:\n            print(f\"altcha CAPTCHA detected -- cannot automate\")\n            return None\n\n        if response.status == 403 or response.status == 503:\n            print(f\"{tier_name} blocked (HTTP {response.status}), escalating\")\n            continue\n\n        result = response.find(selector)\n        if result and result.get_all_text().strip():\n            return result.get_all_text()\n\n        print(f\"{tier_name} returned empty content, escalating\")\n\n    print(\"All tiers exhausted. Manual extraction required.\")\n    return None\n```\n\n**Got:** Function returns extracted text on success, or `None` with a diagnostic message when all tiers fail. CAPTCHA pages are detected and reported rather than retried indefinitely.\n\n**If fail:**\n- All tiers return 403 -- the site blocks all automated access (common with WIPO, TMview, some government databases); document the URL as requiring manual access\n- Timeout errors -- the page may be behind a slow CDN; increase timeout to 120s\n- Session\u002Fcookie errors -- the site may require login; add cookie handling or authenticate first\n\n### Step 5: Rate Limiting and Ethical Scraping\n\nImplement delays and respect site policies before running at scale.\n\n```python\nimport time\nimport urllib.robotparser\n\ndef check_robots_txt(base_url, target_path):\n    \"\"\"Check if scraping is allowed by robots.txt.\"\"\"\n    rp = urllib.robotparser.RobotFileParser()\n    rp.set_url(f\"{base_url}\u002Frobots.txt\")\n    rp.read()\n    return rp.can_fetch(\"*\", f\"{base_url}{target_path}\")\n\ndef scrape_urls(urls, selector, delay=1.0):\n    \"\"\"Scrape multiple URLs with rate limiting.\"\"\"\n    results = []\n    fetcher = StealthyFetcher()\n    fetcher.configure(headless=True, timeout=60)\n\n    for url in urls:\n        response = fetcher.get(url)\n        data = response.find(selector)\n        if data:\n            results.append(data.get_all_text())\n\n        time.sleep(delay)  # respect the server\n\n    return results\n```\n\n**Ethical scraping checklist:**\n\n1. Check `robots.txt` before scraping -- respect `Disallow` directives\n2. Use a minimum 1-second delay between requests\n3. Identify your scraper with a descriptive User-Agent when possible\n4. Do not scrape personal data without legal basis\n5. Cache responses locally to avoid redundant requests\n6. Stop immediately if you receive a 429 (Too Many Requests)\n\n**Got:** Scraping runs at a controlled rate. `robots.txt` is checked before bulk operations. No 429 responses are triggered.\n\n**If fail:**\n- 429 Too Many Requests -- increase delay to 3-5 seconds, or stop and retry later\n- `robots.txt` disallows the path -- respect the directive; do not override it\n- IP ban -- stop scraping immediately; the rate limiting was insufficient. If access is legitimate (public data, ToS-permitted, robots.txt-respected) and you must continue, see [rotate-scraping-proxies](..\u002Frotate-scraping-proxies\u002FSKILL.md) for network-layer escalation\n\n## Validation\n\n- [ ] Correct fetcher tier is selected (not over- or under-powered for the target)\n- [ ] `configure()` method is used (not deprecated constructor kwargs)\n- [ ] CSS selectors match actual page structure (verified against page source)\n- [ ] `.find()` \u002F `.find_all()` API is used (not `.css_first()` or other library methods)\n- [ ] CAPTCHA detection is in place (altcha pages are reported, not retried)\n- [ ] Rate limiting is implemented for multi-URL scraping\n- [ ] `robots.txt` is checked before bulk operations\n- [ ] Extracted data is non-empty and structurally correct\n\n## Pitfalls\n\n- **Using `.css_first()` instead of `.find()`**: scrapling uses `.find()` and `.find_all()` for element selection -- `.css_first()` belongs to a different library and will raise `AttributeError`\n- **Starting with DynamicFetcher**: Try `Fetcher` first, then escalate -- `DynamicFetcher` is 10-50x slower due to full browser startup\n- **Constructor kwargs instead of `configure()`**: scrapling v0.4.x deprecated passing options to the constructor; use the `configure()` method\n- **Ignoring altcha CAPTCHA**: No fetcher tier can solve altcha proof-of-work challenges -- detect them early and fall back to manual instructions\n- **No rate limiting**: Even if the site does not return 429, aggressive scraping can get your IP banned or cause service degradation\n- **Assuming stable selectors**: Website CSS classes change frequently -- validate selectors against current page source before each scraping campaign\n\n## Related Skills\n\n- [rotate-scraping-proxies](..\u002Frotate-scraping-proxies\u002FSKILL.md) -- network-layer escalation when client-side stealth is exhausted and IP bans block legitimate, ToS-permitted access\n- [use-graphql-api](..\u002Fuse-graphql-api\u002FSKILL.md) -- structured API queries when the site offers a GraphQL endpoint (preferred over scraping)\n- [serialize-data-formats](..\u002Fserialize-data-formats\u002FSKILL.md) -- converting extracted data to JSON, CSV, or other formats\n- [deploy-searxng](..\u002Fdeploy-searxng\u002FSKILL.md) -- self-hosted search engine that aggregates results from multiple sources\n- [forage-solutions](..\u002Fforage-solutions\u002FSKILL.md) -- broader pattern for gathering information from diverse sources\n\n\u003C!-- Keep under 500 lines. Extract large examples to references\u002FEXAMPLES.md if needed. -->\n",{"name":5,"locale":23,"license":14,"metadata":24,"translator":31,"description":32,"allowed-tools":33,"source_commit":34,"source_locale":35,"translation_date":36},"caveman-lite",{"tags":25,"author":26,"domain":27,"version":28,"language":29,"complexity":30},"web-scraping, headless, scrapling, automation, data-extraction","Philipp Thoss","web-scraping","1.0","Python","intermediate","Julius Brussee homage — caveman","Extract data from web pages using the scrapling Python library — select the appropriate fetcher tier (HTTP, stealth Chromium, or full browser automation) based on target site defenses, configure headless browsing, and extract structured data with CSS selectors. Use when WebFetch is insufficient for JS-rendered pages, anti-bot-protected sites, or structured multi-element extraction requiring DOM traversal.\n","Bash Read Write Grep Glob","82c77053","en","2026-04-24","master","f483e54f3ad5f202a77d45f2e57f8d970b71195f","skills_library\u002Fheadless-web-scraping",2,"https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills","https:\u002F\u002Fgithub.com\u002Froohe","yoou.link","2026-05-19 15:56:07",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add roohe\u002Fagentic-super-skills --skill headless-web-scraping",{"tool":51,"command":52},"bunx","bunx skills add roohe\u002Fagentic-super-skills --skill headless-web-scraping",{"tool":54,"command":55},"pnpm","pnpm dlx skills add roohe\u002Fagentic-super-skills --skill headless-web-scraping","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fheadless-web-scraping\u002FSKILL.md",true,[],[60,67,74,81,88,95],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M73D865CZME2FCMKA4PQM348","zarr-python","Chunked N-D arrays for cloud storage. Compressed arrays, parallel I\u002FO, S3\u002FGCS integration, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M73D7Z64J4ABWZJD7P44XBBF","youtube-downloader","Download and process YouTube content for research. Use when: downloading competitor videos for analysis; extracting audio for podcasts; getting transcripts for content repurposing; archiving webinars; research content curation","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fyoutube-downloader\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M73D7K8778TGZV3GJFR3703D","yc-pitch-deck","Create a compelling startup pitch deck that follows the structure proven to raise billions from top investors. Master the YC and Sequoia formats that get founders funded. Use when: **Fundraising** to create investor pitch decks; **YC application** to structure your narrative; **Demo Day prep** to craft your 2-minute pitch; **Angel investors** to communicate your opportunity; **Partnership pitches** to structure compelling asks","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fyc-pitch-deck\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M73D70KJSE0E8Z28YMNNRT04","x-twitter-scraper","Use when the user needs X (Twitter) data or confirmation-gated X actions through Xquik: tweet search, user lookup, follower extraction, media download, monitoring, webhooks, MCP, SDKs, posting, likes, DMs, and profile updates. Requires a Xquik API key. Never ask for X login material.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fx-twitter-scraper\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M73D6ED01GV077R7K4NZNFZJ","write-vignette","Create R package vignettes using R Markdown or Quarto. Covers vignette setup, YAML configuration, code chunk options, building and testing, and CRAN requirements for vignettes. Use when adding a Getting Started tutorial, documenting complex workflows spanning multiple functions, creating domain-specific guides, or when CRAN submission requires user-facing documentation beyond function help pages.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fwrite-vignette\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":18},"01M73D69YJR0BK3NFHE0CYG3EF","write-validation-documentation","Write IQ\u002FOQ\u002FPQ validation documentation for computerized systems in regulated environments. Covers protocols, reports, test scripts, deviation handling, and approval workflows. Use when validating R or other software for regulated use, preparing for a regulatory audit, documenting qualification of computing environments, or creating and updating validation protocols and reports for new or re-qualified systems.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fwrite-validation-documentation\u002FSKILL.md",[],[]]