← All one-liners·#072·Research & Summarization·llm cli·power

Summarize breaking news from the last hour

Searches the web for recent news using Firecrawl and pipes the results to Claude for a concise summary.

Setup
  • → npm install -g @mendable/firecrawl-cli
  • → npm install -g @anthropic-ai/claude-cli
  • → export FIRECRAWL_API_KEY=your_firecrawl_key
  • → export ANTHROPIC_API_KEY=your_anthropic_key
Cost per run
~$0.01 per run (Firecrawl + Claude API)
The one-liner
$ firecrawl search "breaking news" --tbs "qdr:h" --json \
  | jq -r '.data.web[] | .title + ": " + .description' \
  | claude -p "Summarize the most critical breaking stories from the last hour based on this data. Output as bullet points."
What each stage does
  1. [01] firecrawlfirecrawl search "breaking news" --tbs "qdr:h" --json
    Searches the web for breaking news, restricting results to the past hour (qdr:h) and outputting raw JSON.
  2. [02] jqjq -r '.data.web[] | .title + ": " + .description'
    Parses the JSON response, extracting the title and description of each search result into a clean text format.
  3. [03] claudeclaude -p "Summarize the most critical..."
    Takes the parsed text stream and uses an LLM to generate a concise, bulleted summary of the news.
Expected output (sample)
Here is a summary of the breaking news from the last hour:

• Global Markets: Asian stocks rally following unexpected tech earnings beats.
• Tech: Major cloud provider resolves a 45-minute outage affecting US-East regions.
• Space: New satellite successfully reaches orbit, deploying its solar array.
• Politics: Emergency summit called in Brussels to discuss new trade regulations.
Caveats & tips
  • Cost/Permission: Both Firecrawl and Claude require active API keys and will incur usage costs per query.
  • Footgun: Search results from the last hour can be highly volatile, and LLMs may hallucinate details not present in the source text.