Last active
July 12, 2020 19:00
-
-
Save johl/28bdb77e510419cf674b26d375a0ec44 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re, feedparser | |
entries = feedparser.parse( | |
'http://www.texxas.de/searchXml/Tagesthemen_tv.xml' | |
).entries | |
for entry in entries: | |
if re.search(r'heute.*Tagesthemen', entry.title) is not None: | |
when = entry.title.split(' | ')[1] | |
print("Die Tagesthemen kommen " + when + " in der ARD.") | |
break | |
else: | |
print("Heute scheinen keine Tagesthemen zu laufen.") | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment