← 返回
效率工具

Scrape Web

使用 Python + Scrapling 获取网页内容,支持简单选择器
使用 Python + Scrapling 获取网页内容,支持简单选择器
jnmhub
效率工具 clawhub v1.0.0 1 版本 99000.8 Key: 无需
★ 2
Stars
📥 3,725
下载
💾 34
安装
1
版本
#latest#python#scrape#web

概述

Scrape Web Skill

使用 Scrapling 获取网页内容,返回纯文本或选择器结果。

安装依赖

pip install "scrapling[all]"
scrapling install
pip install httpx

用法

1) 直接抓取纯文本

python scripts/scrape_web.py --url "https://example.com"

2) 使用 CSS 选择器

python scripts/scrape_web.py --url "https://example.com" --selector "title::text"

3) 保存到文件

python scripts/scrape_web.py --url "https://example.com" --out "output.txt"

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 04:41 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 437 📥 147,168
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 444 📥 226,102
productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 274 📥 114,720