View Single Post
Old 12-01-2010, 12:29 PM   #1
weebl
Junior Member
weebl began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2010
Device: none
How to replace a masthead

I am working on a recipe for the Poughkeepsie Journal and I would like to replace a masthead. I am a new at this and the method I tried is not working.

I've tried the following:

Code:
class AdvancedUserRecipe1291143841(BasicNewsRecipe):
    title          = u'Poughkeepsipe Journal'
    oldest_article = 7
    max_articles_per_feed = 100
    no_stylesheets = True
    timefmt = ' [%a, %d %b, %Y]'
    feeds          = [(u'Local News', u'http://poughkeepsiejournal.com/apps/pbcs.dll/oversikt?Category=RSS01&mime=xml'), (u'Local Business', u'http://poughkeepsiejournal.com/apps/pbcs.dll/oversikt?Category=RSS02&mime=xml'), (u'Local Sports', u'http://poughkeepsiejournal.com/apps/pbcs.dll/oversikt?Category=RSS03&mime=xml'), (u'Life', u'http://poughkeepsiejournal.com/apps/pbcs.dll/oversikt?Category=RSS04&mime=xml')]
    def print_version(self, url):
          return url.replace('http://www.poughkeepsiejournal.com', 'http://www.poughkeepsiejournal.com/print')
          return url.replace('http://www.poughkeepsiejournal.com/graphics/mastlogo.gif','http://www.poughkeepsiejournal.com/graphics/branding.gif')
The portion that is not working is replacing the mastlogo.gif with the branding.gif.

Thanks for any help

Last edited by weebl; 12-01-2010 at 12:44 PM.
weebl is offline   Reply With Quote