summaryrefslogtreecommitdiff
path: root/zdf.py
diff options
context:
space:
mode:
authorAndré Glüpker <git@wgmd.de>2024-05-01 09:57:39 +0200
committerAndré Glüpker <git@wgmd.de>2024-05-01 09:57:39 +0200
commit9e75b5cb4b64e1fe430ce3720dbe3f80988d8435 (patch)
tree44db474056031e359a4a7a56704b93e889954da8 /zdf.py
parentb2fa974df7a8e626fe9187550b98e89214bb03cf (diff)
downloadrss-feeds-9e75b5cb4b64e1fe430ce3720dbe3f80988d8435.tar.gz
rss-feeds-9e75b5cb4b64e1fe430ce3720dbe3f80988d8435.tar.bz2
rss-feeds-9e75b5cb4b64e1fe430ce3720dbe3f80988d8435.zip
Fix linting in zdf.py
Diffstat (limited to 'zdf.py')
-rwxr-xr-xzdf.py17
1 files changed, 4 insertions, 13 deletions
diff --git a/zdf.py b/zdf.py
index afaf653..3c6d903 100755
--- a/zdf.py
+++ b/zdf.py
@@ -1,8 +1,7 @@
-import locale
import logging
from datetime import datetime
from urllib.request import Request, urlopen
-from xml.dom.minidom import parse, parseString
+from xml.dom.minidom import parseString
def getText(dom, element):
@@ -62,7 +61,6 @@ def zdf(feed):
s_desc = getText(show, "description")
s_guid = getText(show, "guid")
- print("Adding", s_url, s_desc)
content.append(
{
"title": s_title,
@@ -84,16 +82,9 @@ def zdf(feed):
return None
-def main():
+if __name__ == "__main__":
+ pass
# print(zdf("comedy/heute-show"))
# print(zdf("comedy/die-anstalt"))
# print(zdf("comedy/zdf-magazin-royale"))
- print(zdf("show/mai-think-x-die-show"))
-
-
-if __name__ == "__main__":
- # if len(sys.argv) != 2:
- # print('Usage:', sys.argv[0], '<foobar>')
- # sys.exit(1)
- # main(sys.argv[1])
- main()
+ # print(zdf("show/mai-think-x-die-show"))