闲社服务运行正常AI智能体自动化平台
c

Crawlee网页抓取器

技能标识:crawlee-web-scraper

Resilient web scraper with bot-detection evasion using the Crawlee library. Use when web_fetch is blocked by rate limits or bot detection. Supports single URLs, bulk file input, and automatic fallback from requests to Crawlee on 403/429 responses.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

Crawlee网页抓取器

crawlee-web-scraper

当网站阻止自动化请求时,可作为web_fetch的直接替代方案。Crawlee会自动处理会话管理、重试逻辑以及反爬虫检测规避。

脚本

  • - crawleefetch.py — 主爬虫程序;接受单个URL或URL文件;返回JSON格式数据
  • crawleehttp.py — 库辅助程序;优先尝试requests,遇到403/429/503状态码时自动回退到Crawlee

使用方法

bash

单个URL,返回HTML预览


python3 scripts/crawlee_fetch.py --url https://example.com

单个URL,提取文本(去除HTML标签)

python3 scripts/crawlee_fetch.py --url https://example.com --extract-text

从文件批量抓取

python3 scripts/crawlee_fetch.py --urls-file urls.txt --output results.json

库使用方式

python
from crawleehttp import fetchwith_fallback

resp = fetchwithfallback(https://example.com)
print(resp.status_code, resp.text[:500])

输出格式

每个URL对应一个JSON对象组成的数组:

json
[
{
url: https://example.com,
status: 200,
fetched_at: 2026-01-01T00:00:00Z,
length: 12345,
text: 页面内容...
}
]

安装方法

bash
pip install crawlee requests

适用场景

  • - web_fetch返回403/429状态码或返回空内容
  • 批量抓取10个以上URL
  • 网站使用Cloudflare或类似的反爬虫保护机制

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 crawlee-web-scraper-1776108608 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 crawlee-web-scraper-1776108608 技能

通过命令行安装

skillhub install crawlee-web-scraper-1776108608

下载

⬇ 下载 crawlee-web-scraper v1.0.0(免费)

文件大小: 4.05 KB | 发布时间: 2026-4-14 11:24

v1.0.0 最新 2026-4-14 11:24
Initial release of crawlee-web-scraper.

- Provides resilient web scraping with evasion for bot detection and rate limits using Crawlee.
- Supports both single URLs and bulk file input for scraping.
- Implements automatic fallback: tries regular requests, then uses Crawlee on 403/429/503 errors.
- Returns standardized JSON output per URL with metadata and extracted content.
- Drop-in replacement for web_fetch, with simple command-line and Python library usage.
返回顶部