Crawl Skill
Required Environment Variables
Invocation Contract
- Call
run_skill_script with:
skill_name: crawl
script_name: one of fetch_page, fetch_js_page, extract_links, extract_tables, crawl_site, check_robots
- Put required positional parameters in
args.
- Put optional value flags in
kwargs using the keys listed below.
- For flag-only boolean options, use
args (not kwargs).
Scripts API
script_name: fetch_page
args: ["<url>"]
- optional
kwargs: timeout, output
script_name: fetch_js_page
args: ["<url>"]
- optional
kwargs: wait, selector, timeout, output
- optional boolean flag
--html: pass via args as "--html"
script_name: extract_links
args: ["<url>"]
- optional
kwargs: filter, timeout, output
--absolute is enabled by default.
script_name: extract_tables
args: ["<url>"]
- optional
kwargs: format, timeout, output
format: json | csv
script_name: crawl_site
args: ["<start_url>"]
- optional
kwargs: max_pages, max_depth, timeout, output
--same-domain is enabled by default.
script_name: check_robots
args: ["<url>"]
- optional
kwargs: user_agent
run_skill_script Examples
- JS-rendered fetch with selector:
{
"skill_name": "crawl",
"script_name": "fetch_js_page",
"args": ["https://example.com"],
"kwargs": {
"wait": 1200,
"selector": "main",
"timeout": 45000
}
}
{
"skill_name": "crawl",
"script_name": "fetch_js_page",
"args": ["https://example.com", "--html"]
}
Notes:
fetch_js_page requires Playwright + Chromium in the execution environment.
Direct CLI Examples
python agent_skills/skills/crawl/scripts/fetch_page.py https://example.com --timeout 20
python agent_skills/skills/crawl/scripts/fetch_js_page.py https://example.com --wait 1200 --selector main
python agent_skills/skills/crawl/scripts/extract_links.py https://example.com --filter /docs
python agent_skills/skills/crawl/scripts/extract_tables.py https://example.com --format csv --output tables.csv
python agent_skills/skills/crawl/scripts/crawl_site.py https://example.com --max-pages 20 --max-depth 2 --output crawl.json
python agent_skills/skills/crawl/scripts/check_robots.py https://example.com --user-agent "DataBot/1.0"
1---2name: crawl3description: Web crawling and extraction scripts for HTML pages, JS-rendered pages, links, tables, robots policy, and site crawling.4license: Proprietary. LICENSE.txt has complete terms5---67# Crawl Skill89## Required Environment Variables1011- None required.1213## Invocation Contract1415- Call `run_skill_script` with:16 - `skill_name`: `crawl`17 - `script_name`: one of `fetch_page`, `fetch_js_page`, `extract_links`, `extract_tables`, `crawl_site`, `check_robots`18- Put required positional parameters in `args`.19- Put optional value flags in `kwargs` using the keys listed below.20- For flag-only boolean options, use `args` (not `kwargs`).2122## Scripts API2324### `script_name: fetch_page`2526- `args`: `["<url>"]`27- optional `kwargs`: `timeout`, `output`2829### `script_name: fetch_js_page`3031- `args`: `["<url>"]`32- optional `kwargs`: `wait`, `selector`, `timeout`, `output`33- optional boolean flag `--html`: pass via `args` as `"--html"`3435### `script_name: extract_links`3637- `args`: `["<url>"]`38- optional `kwargs`: `filter`, `timeout`, `output`39- `--absolute` is enabled by default.4041### `script_name: extract_tables`4243- `args`: `["<url>"]`44- optional `kwargs`: `format`, `timeout`, `output`45- `format`: `json | csv`4647### `script_name: crawl_site`4849- `args`: `["<start_url>"]`50- optional `kwargs`: `max_pages`, `max_depth`, `timeout`, `output`51- `--same-domain` is enabled by default.5253### `script_name: check_robots`5455- `args`: `["<url>"]`56- optional `kwargs`: `user_agent`5758## `run_skill_script` Examples5960- JS-rendered fetch with selector:6162```json63{64 "skill_name": "crawl",65 "script_name": "fetch_js_page",66 "args": ["https://example.com"],67 "kwargs": {68 "wait": 1200,69 "selector": "main",70 "timeout": 4500071 }72}73```7475- Include raw HTML output:7677```json78{79 "skill_name": "crawl",80 "script_name": "fetch_js_page",81 "args": ["https://example.com", "--html"]82}83```8485Notes:8687- `fetch_js_page` requires Playwright + Chromium in the execution environment.8889## Direct CLI Examples9091```bash92python agent_skills/skills/crawl/scripts/fetch_page.py https://example.com --timeout 2093python agent_skills/skills/crawl/scripts/fetch_js_page.py https://example.com --wait 1200 --selector main94python agent_skills/skills/crawl/scripts/extract_links.py https://example.com --filter /docs95python agent_skills/skills/crawl/scripts/extract_tables.py https://example.com --format csv --output tables.csv96python agent_skills/skills/crawl/scripts/crawl_site.py https://example.com --max-pages 20 --max-depth 2 --output crawl.json97python agent_skills/skills/crawl/scripts/check_robots.py https://example.com --user-agent "DataBot/1.0"98```