Loading...
Loading...
Compare original and translation side by side
@latestnpm install -g just-scrape@latest # npm
pnpm add -g just-scrape@latest # pnpm
yarn global add just-scrape@latest # yarn
bun add -g just-scrape@latest # bun
npx just-scrape@latest --help # run without installing
bunx just-scrape@latest --help # run without installing (bun)export SGAI_API_KEY="sgai-..."SGAI_API_KEY.env~/.scrapegraphai/config.json@latestnpm install -g just-scrape@latest # npm
pnpm add -g just-scrape@latest # pnpm
yarn global add just-scrape@latest # yarn
bun add -g just-scrape@latest # bun
npx just-scrape@latest --help # 无需安装直接运行
bunx just-scrape@latest --help # 无需安装直接运行(bun)export SGAI_API_KEY="sgai-..."SGAI_API_KEY.env~/.scrapegraphai/config.json| Need | Command |
|---|---|
| Extract structured data from a known URL | |
| Search the web and extract from results | |
| Convert a page to clean markdown | |
| Crawl multiple pages from a site | |
| Get raw HTML | |
| Automate browser actions (login, click, fill) | |
| Generate a JSON schema from description | |
| Get all URLs from a sitemap | |
| Check credit balance | |
| Browse past requests | |
| Validate API key | |
| 需求 | 命令 |
|---|---|
| 从已知URL提取结构化数据 | |
| 搜索网络并从结果中提取数据 | |
| 将网页转换为简洁的Markdown格式 | |
| 爬取网站的多个页面 | |
| 获取原始HTML内容 | |
| 自动化浏览器操作(登录、点击、填写表单) | |
| 根据描述生成JSON Schema | |
| 从站点地图获取所有URL | |
| 查看积分余额 | |
| 浏览历史请求记录 | |
| 验证API密钥有效性 | |
--json--stealth--headers <json>--schema <json>--json--stealth--headers <json>--schema <json>just-scrape smart-scraper <url> -p <prompt>
just-scrape smart-scraper <url> -p <prompt> --schema <json>
just-scrape smart-scraper <url> -p <prompt> --scrolls <n> # infinite scroll (0-100)
just-scrape smart-scraper <url> -p <prompt> --pages <n> # multi-page (1-100)
just-scrape smart-scraper <url> -p <prompt> --stealth # anti-bot (+4 credits)
just-scrape smart-scraper <url> -p <prompt> --cookies <json> --headers <json>
just-scrape smart-scraper <url> -p <prompt> --plain-textundefinedjust-scrape smart-scraper <url> -p <prompt>
just-scrape smart-scraper <url> -p <prompt> --schema <json>
just-scrape smart-scraper <url> -p <prompt> --scrolls <n> # 无限滚动(取值范围0-100)
just-scrape smart-scraper <url> -p <prompt> --pages <n> # 多页面抓取(取值范围1-100)
just-scrape smart-scraper <url> -p <prompt> --stealth # 反机器人模式(额外消耗4个积分)
just-scrape smart-scraper <url> -p <prompt> --cookies <json> --headers <json>
just-scrape smart-scraper <url> -p <prompt> --plain-textundefinedundefinedundefinedjust-scrape search-scraper <prompt>
just-scrape search-scraper <prompt> --num-results <n> # sources to scrape (3-20, default 3)
just-scrape search-scraper <prompt> --no-extraction # markdown only (2 credits vs 10)
just-scrape search-scraper <prompt> --schema <json>
just-scrape search-scraper <prompt> --stealth --headers <json>undefinedjust-scrape search-scraper <prompt>
just-scrape search-scraper <prompt> --num-results <n> # 要抓取的结果源数量(3-20,默认3)
just-scrape search-scraper <prompt> --no-extraction # 仅生成Markdown格式(消耗2个积分,而非10个)
just-scrape search-scraper <prompt> --schema <json>
just-scrape search-scraper <prompt> --stealth --headers <json>undefinedundefinedundefinedjust-scrape markdownify <url>
just-scrape markdownify <url> --stealth # +4 credits
just-scrape markdownify <url> --headers <json>just-scrape markdownify https://blog.example.com/my-article
just-scrape markdownify https://protected.example.com --stealth
just-scrape markdownify https://docs.example.com/api --json | jq -r '.result' > api-docs.mdjust-scrape markdownify <url>
just-scrape markdownify <url> --stealth # 额外消耗4个积分
just-scrape markdownify <url> --headers <json>just-scrape markdownify https://blog.example.com/my-article
just-scrape markdownify https://protected.example.com --stealth
just-scrape markdownify https://docs.example.com/api --json | jq -r '.result' > api-docs.mdjust-scrape crawl <url> -p <prompt>
just-scrape crawl <url> -p <prompt> --max-pages <n> # default 10
just-scrape crawl <url> -p <prompt> --depth <n> # default 1
just-scrape crawl <url> --no-extraction --max-pages <n> # markdown only (2 credits/page)
just-scrape crawl <url> -p <prompt> --schema <json>
just-scrape crawl <url> -p <prompt> --rules <json> # include_paths, same_domain
just-scrape crawl <url> -p <prompt> --no-sitemap
just-scrape crawl <url> -p <prompt> --stealthundefinedjust-scrape crawl <url> -p <prompt>
just-scrape crawl <url> -p <prompt> --max-pages <n> # 最大爬取页面数(默认10)
just-scrape crawl <url> -p <prompt> --depth <n> # 爬取深度(默认1)
just-scrape crawl <url> --no-extraction --max-pages <n> # 仅生成Markdown格式(每页消耗2个积分)
just-scrape crawl <url> -p <prompt> --schema <json>
just-scrape crawl <url> -p <prompt> --rules <json> # 包含路径、同域名限制等规则
just-scrape crawl <url> -p <prompt> --no-sitemap
just-scrape crawl <url> -p <prompt> --stealthundefinedundefinedundefinedjust-scrape scrape <url>
just-scrape scrape <url> --stealth # +4 credits
just-scrape scrape <url> --branding # extract logos/colors/fonts (+2 credits)
just-scrape scrape <url> --country-code <iso>just-scrape scrape https://example.com
just-scrape scrape https://store.example.com --stealth --country-code DE
just-scrape scrape https://example.com --brandingjust-scrape scrape <url>
just-scrape scrape <url> --stealth # 额外消耗4个积分
just-scrape scrape <url> --branding # 提取Logo/颜色/字体(额外消耗2个积分)
just-scrape scrape <url> --country-code <iso>just-scrape scrape https://example.com
just-scrape scrape https://store.example.com --stealth --country-code DE
just-scrape scrape https://example.com --brandingjust-scrape agentic-scraper <url> -s <steps>
just-scrape agentic-scraper <url> -s <steps> --ai-extraction -p <prompt>
just-scrape agentic-scraper <url> -s <steps> --schema <json>
just-scrape agentic-scraper <url> -s <steps> --use-session # persist browser sessionundefinedjust-scrape agentic-scraper <url> -s <steps>
just-scrape agentic-scraper <url> -s <steps> --ai-extraction -p <prompt>
just-scrape agentic-scraper <url> -s <steps> --schema <json>
just-scrape agentic-scraper <url> -s <steps> --use-session # 持久化浏览器会话undefinedundefinedundefinedjust-scrape generate-schema <prompt>
just-scrape generate-schema <prompt> --existing-schema <json>just-scrape generate-schema "E-commerce product with name, price, ratings, and reviews array"just-scrape generate-schema <prompt>
just-scrape generate-schema <prompt> --existing-schema <json>just-scrape generate-schema "E-commerce product with name, price, ratings, and reviews array"undefinedundefinedjust-scrape sitemap <url>
just-scrape sitemap https://example.com --json | jq -r '.urls[]'just-scrape sitemap <url>
just-scrape sitemap https://example.com --json | jq -r '.urls[]'just-scrape history <service> # interactive browser
just-scrape history <service> <request-id> # specific request
just-scrape history <service> --page <n>
just-scrape history <service> --page-size <n> # max 100
just-scrape history <service> --jsonmarkdownifysmartscrapersearchscraperscrapecrawlagentic-scrapersitemapjust-scrape history smartscraper
just-scrape history crawl --json --page-size 100 | jq '.requests[] | {id: .request_id, status}'just-scrape history <service> # 交互式浏览器
just-scrape history <service> <request-id> # 查看特定请求
just-scrape history <service> --page <n>
just-scrape history <service> --page-size <n> # 最大100条
just-scrape history <service> --jsonmarkdownifysmartscrapersearchscraperscrapecrawlagentic-scrapersitemapjust-scrape history smartscraper
just-scrape history crawl --json --page-size 100 | jq '.requests[] | {id: .request_id, status}'just-scrape credits
just-scrape credits --json | jq '.remaining_credits'
just-scrape validatejust-scrape credits
just-scrape credits --json | jq '.remaining_credits'
just-scrape validatejust-scrape generate-schema "Product with name, price, and reviews" --json | jq '.schema' > schema.json
just-scrape smart-scraper https://store.example.com -p "Extract products" --schema "$(cat schema.json)"just-scrape generate-schema "Product with name, price, and reviews" --json | jq '.schema' > schema.json
just-scrape smart-scraper https://store.example.com -p "Extract products" --schema "$(cat schema.json)"just-scrape sitemap https://example.com --json | jq -r '.urls[]' | while read url; do
just-scrape smart-scraper "$url" -p "Extract title" --json >> results.jsonl
donejust-scrape sitemap https://example.com --json | jq -r '.urls[]' | while read url; do
just-scrape smart-scraper "$url" -p "Extract title" --json >> results.jsonl
doneundefinedundefinedundefinedundefined| Feature | Extra Credits |
|---|---|
| +4 per request |
| +2 |
| 10 per request |
| 2 per request |
| 2 per page |
| 功能 | 额外消耗积分 |
|---|---|
| 每次请求+4 |
| +2 |
| 每次请求10 |
| 每次请求2 |
| 每页2 |
SGAI_API_KEY=sgai-... # API key
JUST_SCRAPE_TIMEOUT_S=300 # Request timeout in seconds (default 120)
JUST_SCRAPE_DEBUG=1 # Debug logging to stderrSGAI_API_KEY=sgai-... # API密钥
JUST_SCRAPE_TIMEOUT_S=300 # 请求超时时间(秒,默认120)
JUST_SCRAPE_DEBUG=1 # 开启调试日志(输出到stderr)