View Single Post
Old 12-02-2010, 08:56 AM   #1
weebl
Junior Member
weebl began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2010
Device: none
Poughkeepsie Journal recipe

Special thanks to Starson17 for assistance with coding

Code:
class AdvancedUserRecipe1291143841(BasicNewsRecipe):
    title          = u'Poughkeepsie 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')]
    remove_tags = [dict(name='img', attrs={'src':'/graphics/mastlogo.gif'})] 

    def print_version(self, url):
          return url.replace('http://www.poughkeepsiejournal.com', 'http://www.poughkeepsiejournal.com/print')

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