Bloomberg articles are behind a paywall, but the headlines are not: like every big publisher, Bloomberg gives Google News a sitemap of its latest stories. That is enough for a very useful tool, an alert when Bloomberg publishes a headline about something you care about.
The source
https://www.bloomberg.com/sitemaps/news/latest.xml It is a plain XML file with the latest ~500 stories. Each <url> holds the link, a last-modified time and a news:news block with the title and publication date:
<url> <loc>https://www.bloomberg.com/news/articles/2026-12-02/...</loc> <news:news> <news:publication_date>2026-12-02T11:06:00Z</news:publication_date> <news:title>Kenya Starts First Oil at Ex-Tullow Fields After 15 Years</news:title> </news:news> </url> On 2026-12-02 it held 522 entries: 258 from the last 24 hours and 483 from the last 48. The URL tells you the section: 416 news, 59 newsletters, 27 opinion, 8 features and 2 live blogs. Publishing peaks between 11:00 and 14:00 UTC, when about a quarter of the day's headlines land.
import re, requests xml = requests.get("https://www.bloomberg.com/sitemaps/news/latest.xml", headers={"User-Agent": "Mozilla/5.0"}, timeout=40).text items = [] for u in re.findall(r"<url>(.*?)</url>", xml, re.S): get = lambda tag: (re.search(f"<{tag}>(.*?)</{tag}>", u, re.S) or [None, None])[1] items.append({"url": get("loc"), "title": get("news:title"), "published": get("news:publication_date")}) The bug everyone writes first: substring matching
The obvious filter is if "ai" in title.lower(). In this feed that matched 121 headlines. Only 44 were about AI. The rest were "S*aid", "Spain's", "Gains", "Ukraine", "Agai*nst":
| Keyword | Substring hits | Whole-word hits | False positives |
|---|---|---|---|
| ai | 121 | 44 | Said, Spain's, Gains, Ukraine |
| gold | 10 | 7 | Goldman, Golden Dome |
| fed | 15 | 13 | FedEx |
| oil | 20 | 19 | Turmoil |
Match whole words instead:
def hit(title, kw): return re.search(rf"(^|[^a-z0-9]){re.escape(kw.lower())}([^a-z0-9]|$)", title.lower()) Whole words have the opposite failure: they miss forms you wanted. "fed" no longer matches "Federal Reserve Should Raise Interest Rates", and "rate" misses 7 headlines that say "Rates". List the forms you mean ("Fed", "Federal Reserve", "rate", "rates") rather than going back to substrings.
Making it an alert
An alert should only fire on headlines it has not sent before. Keep the set of URLs you have seen and drop them next run:
seen = load_seen() # a file, Redis, a key-value store new = [i for i in items if i["url"] not in seen and any(hit(i["title"], k) for k in KEYWORDS)] save_seen(seen | {i["url"] for i in items}) Run it every 15 minutes and send new to Slack or email. With "Nvidia, oil, China, Fed" it matched 66 headlines over two days, a few per 15-minute run.
What Bloomberg covered (2026-12-01 to 12-02)
Whole-word counts across the feed: AI 44, Nvidia 22, China 19, oil 19, Trump 17, Fed 13, India 13, Russia 10. Bitcoin: 2.
A ready-made version
I put this on Apify as Bloomberg Headlines Feed: keywords, excluded words, sections, hours back, and an only-new mode that remembers what it already returned, so a schedule plus a Slack integration is the whole alert. Headlines and links only, never article text.
What keyword would you put on alert first?