rreynolds24
10-01-2009, 10:51 PM
I use this script: http://leecher.pastebin.com/f197a7770 (from this http://code.google.com/p/leechr/ )
Basically it searches myepisodes.com for what programmes I watch, and then uses that search criteria to download .nzb files from newzleech.com (it doesnt actually download any tv shows, just .nzb files which are just xml information files)
But its been broken for some time now - the way it searches newzleech.com is just to append the search string to the rss part of their page, which no longer works. I was looking to change the code so instead it would parse a proper rss feed (eg: http://www.tvnzb.com/tvnzb_new.rss )for the search string..
Ive come up with this snippet:
import feedparser
d = feedparser.parse("http://www.tvnzb.com/tvnzb_new.rss")
for entry in d['entries']:
if entry['title'] == "INSERT MYEPS EP HERE":
goGetTheURL(entry['link'])
But Im not really sure how to change the existing code to incorporate it..
Any pointers would be much appreciated... :)
Basically it searches myepisodes.com for what programmes I watch, and then uses that search criteria to download .nzb files from newzleech.com (it doesnt actually download any tv shows, just .nzb files which are just xml information files)
But its been broken for some time now - the way it searches newzleech.com is just to append the search string to the rss part of their page, which no longer works. I was looking to change the code so instead it would parse a proper rss feed (eg: http://www.tvnzb.com/tvnzb_new.rss )for the search string..
Ive come up with this snippet:
import feedparser
d = feedparser.parse("http://www.tvnzb.com/tvnzb_new.rss")
for entry in d['entries']:
if entry['title'] == "INSERT MYEPS EP HERE":
goGetTheURL(entry['link'])
But Im not really sure how to change the existing code to incorporate it..
Any pointers would be much appreciated... :)