运行时依赖
无特殊依赖
安装命令
点击复制官方npx clawhub@latest install scrape-web
镜像加速npx clawhub@latest install scrape-web --registry https://cn.longxiaskill.com 镜像可用
技能文档
Scrape 网页 技能
使用 Scrapling 获取网页内容,返回纯文本或选择器结果。
安装依赖 pip 安装 "scrapling[all]" scrapling 安装 pip 安装 httpx
用法 1) 直接抓取纯文本 python scripts/scrape_网页.py --url "https://example.com"
2) 使用 CSS 选择器 python scripts/scrape_网页.py --url "https://example.com" --selector "title::text"
3) 保存到文件 python scripts/scrape_网页.py --url "https://example.com" --out "输出.txt"