View Single Post
Old 08-10-2011, 04:07 PM   #1
bosplans
Member
bosplans began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Mar 2011
Device: kindle 3
New recipe voxeu.org - image problem

I am preparing a new recipe for voxeu.org, an Europeany policy porta.
The recipe so far work properly apart the images in articles fetched are not displayed in the output. Looks like the recipe get the wrong link to the original image (it is a relative link).
Any workaround to fix the problem?

Here the recipe source:

Code:
class Vox(BasicNewsRecipe):
    __author__        = 'Voxeu.org'
    description   = 'Policy portal set up by the Centre for Economic Policy Research'

    cover_url      = 'http://farm7.static.flickr.com/6122/6030018218_2a48a07230_z.jpg'
    title          = u'Vox'
    category       = 'Policy, politics, culture, economy, financial, Italian'

    language       = 'en'
    timefmt        = '[%a, %d %b, %Y]'

    oldest_article = 7
    max_articles_per_feed = 100
    use_embedded_content  = False
    recursion             = 10
    extra_css      = '.headline {font-size: x-large;} \n .fact { padding-top: 10pt  }'

         
    remove_tags = [
                            dict(name='fieldset', attrs={'class':['fieldgroup group-authors','fieldgroup group-editors-choice']}),
                            dict(name='div', attrs={'class':['print-taxonomy','print-footer','print-source_url','print-links']}),
                           ]

    feeds = [
                  (u'Notizie', u'http://www.voxeu.org/rss.php?q=recent'),
                ]

    def print_version(self, url):
          return url.replace('node', 'print')
Thanks!
bosplans is offline   Reply With Quote