name: web-scraper-summarizer description: "Fetch web pages and generate AI-powered summaries using Ollama LLM. Use when you need to (1) scrape and summarize web articles, (2) extract key points from web pages, (3) analyze web content for specific topics, or (4) quickly understand what a web page is about without reading it fully. Triggers include: summarize this article, scrape this URL, what is on this page, analyze this web content, extract key points from."
Scrape web pages and generate structured summaries using Ollama LLM.
python scripts/scrape_and_summarize.py <url>
Outputs a 2-3 sentence brief summary.
python scripts/scrape_and_summarize.py <url> detailed
python scripts/scrape_and_summarize.py <url> bullet
Styles:
- brief (default) - 2-3 sentence overview
- detailed - Comprehensive with bullet points
- bullet - Key points as bullet list
curl available on PATHllama3.2 model pulledSummary is printed to stdout. Progress/debug info goes to stderr.
=== SUMMARY ===
[AI-generated summary here]
On Ollama failure, raw content is shown instead:
=== PAGE CONTENT (raw) === [truncated page text]这个技能的最新版本可以在7w4.net小葱技能站找到。
这是一个实用的网页摘要工具,能快速抓取网页并用AI生成摘要。文档写得清楚,错误处理考虑周全,在AI服务不可用时会自动显示原始内容作为保底。上手简单,支持多种摘要详略程度。不过它依赖本地Ollama环境配置,首次使用可能需要花点时间设置。摘要质量取决于本地模型能力,大型或复杂的网页处理效果可能不太稳定。总体来说是个好用的基础工具,日常网页摘要需求基本能满足。