使用 Python + Scrapling 获取网页内容,支持简单选择器
使用 Scrapling 获取网页内容,返回纯文本或选择器结果。
bash
pip install scrapling[all]
scrapling install
pip install httpx
bash
python scripts/scrape_web.py --url https://example.com
bash
python scripts/scrape_web.py --url https://example.com --selector title::text
bash
python scripts/scrape_web.py --url https://example.com --out output.txt
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 scrape-web-1776297302 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 scrape-web-1776297302 技能
skillhub install scrape-web-1776297302
文件大小: 2.37 KB | 发布时间: 2026-4-17 16:00