From 3c5501643bc09dbcd0087099f9782abfcdd36986 Mon Sep 17 00:00:00 2001 From: Rob Canning Date: Thu, 18 Jan 2024 15:07:44 +0100 Subject: [PATCH] added feedparser for testing RSS --- feed_parser.py | 11 +++++++++++ mk_show.py | 1 + 2 files changed, 12 insertions(+) create mode 100755 feed_parser.py diff --git a/feed_parser.py b/feed_parser.py new file mode 100755 index 0000000..bdf32f8 --- /dev/null +++ b/feed_parser.py @@ -0,0 +1,11 @@ +#!/usr/bin/python3 + +import feedparser + +#d = feedparser.parse('http://www.reddit.com/r/python/.rss') +d = feedparser.parse('file:///home/rob/antena/html/podcast_rss.xml') + +for post in d.entries: +# print(post.title + ": " + post.link + "") + print(post) + diff --git a/mk_show.py b/mk_show.py index f056b8b..82a101d 100755 --- a/mk_show.py +++ b/mk_show.py @@ -100,6 +100,7 @@ def create_episode_playlist(episode_playlist: list, complete_playlist:list): min_track_dur = 2 # TODO what is most important 12 tracks or 60 minutes + # what will while episode_duration < 60 * 60 and track_count < 12 : cursor = conn.cursor()