Install
openclaw skills install edge-browserControl Microsoft Edge browser to fetch web pages and extract content. Use when the user wants to access a specific URL using Edge browser instead of Chrome, or when regular web fetching tools fail due to anti-scraping protections. Useful for accessing pages that require JavaScript rendering or have bot detection.
openclaw skills install edge-browser使用 Microsoft Edge 浏览器访问指定 URL 并提取页面内容。
需要安装 Playwright:
pip install playwright
playwright install chromium
python ~/.openclaw/skills/edge-browser/scripts/fetch.py <URL>
python ~/.openclaw/skills/edge-browser/scripts/fetch.py <URL> --wait 5
python ~/.openclaw/skills/edge-browser/scripts/fetch.py <URL> --wait 5 --output result.json
{
"url": "https://example.com",
"title": "Page Title",
"content": "<html>...</html>",
"text": "Extracted text content...",
"status": "success"
}
如果 Edge 浏览器未在默认位置安装,脚本会自动回退到 Chromium。
增加 --wait 时间,等待动态内容加载完成:
python scripts/fetch.py <URL> --wait 10
脚本已配置 Edge User-Agent,大多数网站应能正常访问。如遇问题,可能需要额外配置代理或验证码处理。