From 176984051d85a60e48455851186e345a446f4a0d Mon Sep 17 00:00:00 2001 From: Dan Dembinski Date: Wed, 19 Feb 2020 13:58:27 -0500 Subject: [PATCH] Iniial commit. Reads in hardcoded OPML file and prints out podcast title/url/artwork url/desc --- main.py | 14 ++++++++++++++ podcast_republic_podcasts.opml | 1 + 2 files changed, 15 insertions(+) create mode 100644 main.py create mode 100644 podcast_republic_podcasts.opml diff --git a/main.py b/main.py new file mode 100644 index 0000000..f9c9861 --- /dev/null +++ b/main.py @@ -0,0 +1,14 @@ +import opml + +def podcastImport (): + outline = opml.parse("podcast_republic_podcasts.opml") + x = len(outline) + y=0 + + while y < x: + print(outline[y].title) + print(outline[y].xmlUrl) + print(outline[y].pr_artwork) + print(outline[y].pr_desc) + print() + y=y+1 diff --git a/podcast_republic_podcasts.opml b/podcast_republic_podcasts.opml new file mode 100644 index 0000000..a4e8533 --- /dev/null +++ b/podcast_republic_podcasts.opml @@ -0,0 +1 @@ +Podcast Republic Subscribed Feeds \ No newline at end of file