View Single Post
Old 12-05-2010, 06:32 PM   #2
jangliss
Junior Member
jangliss began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2010
Device: Sony PR-650
Relatively Easy...

At least I think it should be... The manual has an example on how to do this for the BBC News website, and takes just a minor tweek to get working with this one.

Code:
class CTVNews(BasicNewsRecipe):
    title = u'CTV News Feed'
    oldest_article = 7
    max_articles_per_feed = 100

    feeds = [(http://www.ctv.ca/generic/generated/freeheadlines/rdf/allNewsRss.xml)]

    def print_version(self, url):
        return url.replace('http://www.ctv.ca/','http://www.ctv.ca/servlet/ArticleNews/print/') + '?hub=TopStories&subhub=PrintStory'
I did notice that the URL had a date string before the print ?hub bit at the end, but on a random guess, I took it out, and it worked. I've not tested the above, and might be missing other critical parts (this is my first attempt), but give it a shot.
jangliss is offline   Reply With Quote