Well, in my last post, I wrote about my plans to write up a simple pod(net)cast client that ran in the terminal and could download whatever feed I wanted to subscribe to. Well, I have made a few steps forward an actual useable product.
Thanks to a few fellas in #python, I am making use of the feedparser module, which definitely is making this a lot easier for me. Instead of me trying to get the text of a unicode object into a list, the feedparser module parses whatever feed I throw at it into a dictionary. This makes retrieving various pieces of data really easy, for example, the enclosure href.
Right now, my program (temporarily named pyNetcast since pyPod is actually taken it seems and also because I don’t feel like risking a lawsuit from Apple) parses the SimplyTech feed, gives me the href for the first enclosure, and saves that href to an mp3 file.
On the to do list:
- Figure out how to know when the feed has been updated and when an episode has already been downloaded
- Download more than the first episode
- I would like to see some sort of progress displayed when downloading the file. Right now, all the program displays is the blinking line
- Subscribe to more than one feed, though this is easily accomplished
- Be able to update and download silently
- And some other stuff that I can’t remember
Hopefully I will find some time to keep plugging away at this program in the coming days. In the two nights I have worked on this I have made decent progress. I have to remember to make better use of Google.