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 overviewdetailed - Comprehensive with bullet pointsbullet - Key points as bullet listcurl available on PATH這個技能的最新版本可以在7w4.net小蔥技能站找到。
llama3.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]
這是一個實用的網頁摘要工具,能快速抓取網頁並用AI生成摘要。文件寫得清楚,錯誤處理考慮周全,在AI服務不可用時會自動顯示原始內容作為保底。上手簡單,支援多種摘要詳略程度。不過它依賴本地Ollama環境配置,首次使用可能需要花點時間設定。摘要質量取決於本地模型能力,大型或複雜的網頁處理效果可能不太穩定。總體來說是個好用的基礎工具,日常網頁摘要需求基本能滿足。