24k-handsomer/webpage-reader-skill/SKILL.md
# OpenClaw 网页下载器技能 ## 技能描述 网页读取器技能是一个强大的工具,允许您使用Google Chrome的无头浏览器读取和分析网页内容。此技能可以: - 检查系统是否安装了Google Chrome - 如果未找到Chrome,自动尝试安装(在支持的平台上) - 使用Chrome的无头模式和优化参数下载网页内容 - 读取和处理下载的HTML内容 - 生成网页内容摘要 - 安全处理临时文件以保护您的隐私 ## 安装指南 ### 先决条件 - Python 3.8或更高版本 - Google Chrome浏览器(将被自动检测,如果缺少将提供安装协助) ### 安装步骤 1. **在OpenClaw中安装技能**: - 打开OpenClaw - 进入技能管理器 - 点击"添加技能" - 选择您下载此技能的目录 - 点击"安装" ### 平台特定说明 - **Windows**:Chrome安装需要从[Google Chrome](https://www.googl
npx skillsauth add openclaw/skills 24k-handsomer/webpage-reader-skillInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
网页读取器技能是一个强大的工具,允许您使用Google Chrome的无头浏览器读取和分析网页内容。此技能可以:
from webpage_reader import main
result = main("https://example.com")
if result['success']:
print("网页下载成功!")
print("摘要:")
print(result['summary'])
print("\n内容预览:")
print(result['content'][:500] + "..." if len(result['content']) > 500 else result['content'])
else:
print(f"错误:{result['message']}")
python webpage_reader.py https://example.com
技能使用以下Chrome命令参数以获得最佳性能:
google-chrome --headless=new --no-sandbox --disable-gpu --disable-dev-shm-usage --virtual-time-budget=8000 --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36" --hide-scrollbars --blink-settings=imagesEnabled=true --dump-dom <url>
技能返回具有以下结构的字典:
{
"success": bool, # 操作是否成功
"message": str, # 状态消息
"content": str, # 网页的完整HTML内容
"summary": str # 网页内容摘要
}
未找到Chrome
权限错误
超时错误
download_webpage函数中修改超时时间。内容为空
编码错误
read_webpage_content函数中的编码处理。技能生成详细的日志以帮助诊断问题。日志默认输出到控制台,但可以配置为写入文件(如果需要)。
欢迎贡献!请随时提交Pull Request。
此技能以MIT许可证发布。有关详细信息,请参阅LICENSE文件。
如果您遇到任何问题或有疑问,请在GitHub存储库上打开一个issue。
tools
Use when the user wants to connect to, test, or use the McDonalds service at mcp.mcd.cn, including checking authentication, probing MCP endpoints, listing tools, or calling McDonalds MCP tools through a reusable local CLI.
development
Web scraping platform — Twitter/X data, Vinted marketplace, and general web scraping API
development
SlowMist AI Agent Security Review — comprehensive security framework for skills, repositories, URLs, on-chain addresses, and products (Claude Code version)
data-ai
去除中文文本中的 AI 写作痕迹,使其读起来自然。基于维基百科 AI 写作特征指南,检测 24 种 AI 模式。触发词:humanizer-cn、去除 AI 痕迹、去除 AI 写作痕迹、中文文本人性化。