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 w...
Scrape web pages and generate structured summaries using Ollama LLM.
text
python scripts/scrape_and_summarize.py <url>
Outputs a 2-3 sentence brief summary.
text
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 PATHllama3.2 model pulledSummary is printed to stdout. Progress/debug info goes to stderr.
text
=== SUMMARY ===
[AI-generated summary here]
On Ollama failure, raw content is shown instead:
text
=== PAGE CONTENT (raw) ===
[truncated page text]