Skip to content

Instantly share code, notes, and snippets.

@danielrosehill
Created May 4, 2025 17:48
Show Gist options
  • Select an option

  • Save danielrosehill/3647b16b5814123f99296ee884358d15 to your computer and use it in GitHub Desktop.

Select an option

Save danielrosehill/3647b16b5814123f99296ee884358d15 to your computer and use it in GitHub Desktop.
How to set up a personalized system using LLMs and news APIs to receive concise updates only when significant security developments occur in Israel.

Q&A: How Can I Get Only Important Security Updates (e.g., Missile Attacks) Without Constant News Scrolling?

This is a summarized guide for users (especially in regions like Israel) who want timely but minimal updates on security situations—such as missile threats—without being overwhelmed by constant news.


Q: I live in Israel and want to stay informed on security threats (like missile attacks) but don’t want to be glued to speculative news. Is there an app that only sends alerts when something major happens?

A: No app perfectly fits this description, but you can build a system using public news APIs and an LLM (Language Model) to deliver summarized alerts only when there's something important to report.


Step-by-Step Guide to Build Your Own System

Step 1: News Aggregation via API

Use a news API to pull relevant updates:

  • NewsAPI.org – Custom queries like "Israel AND missile" or "Iran AND attack".
  • Bing News Search API – More refined results with better metadata.
  • Google News API – Useful for the most recent headlines, with high relevance.

Step 2: Filter for Major Developments

Apply basic logic or keyword filters:

  • Keywords: "missile", "rocket attack", "air raid siren", "IDF response", "escalation", "impending strike".
  • Optional: Use sentiment analysis or article frequency thresholds to detect urgency.
  • This step ensures the system is quiet by default and only reacts to relevant spikes.

Step 3: Summarize Using an LLM

Use a model like GPT to:

  • Summarize relevant news stories into a short, actionable alert.
  • Optionally include brief context if multiple related events occur.
  • Output: "As of 8AM, there have been no missile-related updates. No action needed." or "Rocket fire was reported near Ashkelon. IDF is responding."

Step 4: Deliver the Update

Choose your preferred delivery format:

  • Email: Use SMTP via Python or a service like SendGrid.
  • SMS/Push Notification: Integrate with Twilio or Pushover.
  • Telegram/WhatsApp: Use bots for chat-style delivery.

Example Stack

  • Scheduler: cron (Linux) or schedule (Python module).
  • Language Model: GPT-4 via OpenAI API (or local LLM).
  • Language: Python or Node.js.
  • Alert delivery: Email (SMTP), SMS (Twilio), or messaging bot.

Optional Features

  • Adjustable alert sensitivity via config file.
  • Custom "quiet hours" (e.g., only notify between 6am–10pm).
  • Archive summaries to local logs or Google Sheets for reference.

No-Code or Low-Code Alternatives

If you're not a coder:

  • Use Zapier or Make.com with a GPT plugin and NewsAPI to create a similar automation.
  • Use IFTTT for news-to-email pipelines, combined with manual filters.

Conclusion: You can build a smart, minimal-interruption news alert system using modern tools. The key is combining targeted aggregation, keyword filtering, and LLM summarization to get only relevant security updates—without constant noise.


This gist was generated with the help of OpenAI based on user-provided context and current tooling options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment