ai newsFr., 4. Dez.
EilmeldungAlibaba Releases Qwen4-35B-A3B: Open-Weight MoE Model With 1M Context

Bloomberg veröffentlicht rund 250 Schlagzeilen täglich: KI-Stichwortalarm auf Sitemap-Basis

Bloombergs Artikel stecken hinter einer Paywall, die Schlagzeilen aber nicht: Der News-Sitemap an Google News genügt, um Alerts bei relevanten Meldungen zu triggern. Der Begriff AI allein traf 121 von etwa 250 täglichen Headlines.

dev.toMittwoch 15:26 · 02.12.DE3 Min. Lesezeit
Bild: dev.to

Bloomberg-Artikel stehen hinter einer Paywall, die Schlagzeilen jedoch nicht: Wie jeder große Publisher stellt Bloomberg Google News eine Sitemap seiner neuesten Artikel zur Verfügung. Das reicht für ein sehr nützliches Werkzeug, nämlich eine Benachrichtigung, sobald Bloomberg eine Schlagzeile zu einem Thema veröffentlicht, das einem wichtig ist.

https://www.bloomberg.com/sitemaps/news/latest.xml Enter fullscreen mode Exit fullscreen mode Es handelt sich um eine einfache XML-Datei mit den neuesten rund 500 Artikeln. Jedes <url>-Element enthält den Link, einen Zeitstempel der letzten Änderung sowie einen news:news-Block mit dem Titel und dem Veröffentlichungsdatum:

<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> Enter fullscreen mode Exit fullscreen mode Am 2026-12-02 enthielt sie 522 Einträge: 258 aus den letzten 24 Stunden und 483 aus den letzten 48. Die URL verrät die Rubrik: 416 News, 59 Newsletter, 27 Opinion, 8 Features und 2 Live-Blogs. Die Veröffentlichungen erreichen ihren Höhepunkt zwischen 11:00 und 14:00 UTC, in denen etwa ein Viertel der Schlagzeilen des Tages erscheint.

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" ) } ) Enter fullscreen mode Exit fullscreen mode Der Fehler, den jeder zuerst schreibt: die Suche nach Teilstrings Der naheliegende Filter ist if "ai" in title.lower(). In diesem Feed traf das auf 121 Schlagzeilen zu. Nur 44 handelten tatsächlich von KI. Die übrigen waren "S* ai d", "Sp ai n's", "G ai ns", "Ukr ai ne", "Ag ai *nst":

def hit ( title, kw ): return re. search ( rf "(^|[^a-z0-9]){re.escape(kw.lower())}([^a-z0-9]|$)", title. lower ( ) ) Enter fullscreen mode Exit fullscreen mode Die Suche nach ganzen Wörtern hat das umgekehrte Problem: Sie verpasst Formen, die man eigentlich treffen wollte. "fed" matcht nicht mehr " Federal Reserve Should Raise Interest Rates", und "rate" verpasst 7 Schlagzeilen, in denen "Rates" steht. Liste also die Formen auf, die du meinst ("Fed", "Federal Reserve", "rate", "rates"), statt zu Teilstrings zurückzukehren.

Eine Benachrichtigung sollte nur bei Schlagzeilen ausgelöst werden, die noch nicht verschickt wurden. Speichere die Menge der bereits gesehenen URLs und überspringe sie beim nächsten Durchlauf:

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 } ) Enter fullscreen mode Exit fullscreen mode Lass es alle 15 Minuten laufen und schicke new an Slack oder per E-Mail. Mit "Nvidia, oil, China, Fed" wurden über zwei Tage 66 Schlagzeilen getroffen, also einige pro 15-Minuten-Durchlauf.

Anzahl der ganzen Wörter im gesamten Feed: AI 44, Nvidia 22, China 19, oil 19, Trump 17, Fed 13, India 13, Russia 10. Bitcoin: 2.

Ich habe das unter dem Namen Bloomberg Headlines Feed auf Apify bereitgestellt: Keywords, ausgeschlossene Wörter, Rubriken, Zeitrückblick in Stunden sowie ein only-new-Modus, der sich merkt, was er bereits zurückgegeben hat. Ein Zeitplan plus eine Slack-Integration ergeben damit schon die komplette Benachrichtigungslösung. Nur Schlagzeilen und Links, niemals den Artikeltext.

Welches Keyword würdest du zuerst auf Benachrichtigung setzen?

Automatisch übersetzt. Das Original auf Englisch ist unten aufklappbar.

Original (Englisch) anzeigen

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.

https://www.bloomberg.com/sitemaps/news/latest.xml Enter fullscreen mode Exit fullscreen mode 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> Enter fullscreen mode Exit fullscreen mode 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" ) } ) Enter fullscreen mode Exit fullscreen mode 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* ai d", "Sp ai n's", "G ai ns", "Ukr ai ne", "Ag ai *nst":

def hit ( title, kw ): return re. search ( rf "(^|[^a-z0-9]){re.escape(kw.lower())}([^a-z0-9]|$)", title. lower ( ) ) Enter fullscreen mode Exit fullscreen mode 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.

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 } ) Enter fullscreen mode Exit fullscreen mode 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.

Whole-word counts across the feed: AI 44, Nvidia 22, China 19, oil 19, Trump 17, Fed 13, India 13, Russia 10. Bitcoin: 2.

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?

Originaltitel: Bloomberg publishes about 250 headlines a day. A keyword alert from its news sitemap, and why "AI" matched 121 of themQuelle: dev.to (dev.to). Original öffnen