Skip to content

Instantly share code, notes, and snippets.

@johl
Last active July 12, 2020 19:00
Show Gist options
  • Save johl/28bdb77e510419cf674b26d375a0ec44 to your computer and use it in GitHub Desktop.
Save johl/28bdb77e510419cf674b26d375a0ec44 to your computer and use it in GitHub Desktop.
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