View Single Post
Old 08-04-2010, 09:14 PM   #2381
sark666
Connoisseur
sark666 began at the beginning.
 
Posts: 51
Karma: 10
Join Date: Jul 2010
Device: colognesbook
@Starson17

Thanks, if you can look at it, it would be appreciated.

But the strange thing is I just re-ran it since Friday, and now on some I get the article with no image (haven't verified on the site if those actually have an image), some with just an image, and some with just the header alone.

Code:
class AdvancedUserRecipe1280289069(BasicNewsRecipe):
    title          = u'Metro Daily'
    oldest_article = 7
    max_articles_per_feed = 100

    feeds          = [(u'metro local', u'http://www.metronews.ca/Toronto/local/rss')]


    def print_version(self, url):
        baseurl='http://www.metronews.ca/ArticlePrint/' 
        split1 = url.split("/")
        xxx=split1 [6]
        split2= xxx[0:5]
        s =  baseurl + split2
        print s
        return s

Here are more feeds if it helps in having more examples when generated:

Code:
    feeds          = [
    (u'Local', u'http://www.metronews.ca/Toronto/local/rss'),
    (u'Entertainment', u'http://www.metronews.ca/Toronto/entertainment/rss'),
    (u'World', u'http://www.metronews.ca/Toronto/world/rss'),
    (u'Canada',u'http://www.metronews.ca/Toronto/canada/rss'),
    (u'Business',u'http://www.metronews.ca/Toronto/business/rss')
    ]
I'm going to read the article you linked but anything you can suggest to get consistent results would be appreciated. I'm a little confused by your mention of firefox. I"m not sure if calibre somehow uses the gecko engine in downloading the articles.
sark666 is offline