home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / Calibre / calibre-0.8.18.msi / file_280 / poughkeepsie_journal.recipe < prev    next >
Text File  |  2011-09-09  |  987b  |  20 lines

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class AdvancedUserRecipe1291143841(BasicNewsRecipe):
  4.     title          = u'Poughkeepsie Journal'
  5.     language = 'en'
  6.     __author__ = 'weebl'
  7.     oldest_article = 7
  8.     max_articles_per_feed = 100
  9.     no_stylesheets = True
  10.     timefmt = ' [%a, %d %b, %Y]'
  11.     feeds          = [(u'Local News', u'http://poughkeepsiejournal.com/apps/pbcs.dll/oversikt?Category=RSS01&mime=xml'),
  12.             (u'Local Business', u'http://poughkeepsiejournal.com/apps/pbcs.dll/oversikt?Category=RSS02&mime=xml'),
  13.             (u'Local Sports', u'http://poughkeepsiejournal.com/apps/pbcs.dll/oversikt?Category=RSS03&mime=xml'),
  14.             (u'Life', u'http://poughkeepsiejournal.com/apps/pbcs.dll/oversikt?Category=RSS04&mime=xml')]
  15.     remove_tags = [dict(name='img', attrs={'src':'/graphics/mastlogo.gif'})]
  16.  
  17.     def print_version(self, url):
  18.           return url.replace('http://www.poughkeepsiejournal.com', 'http://www.poughkeepsiejournal.com/print')
  19.  
  20.