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

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class AdvancedUserRecipe1295088390(BasicNewsRecipe):
  4.      title          = u'Everett Herald'
  5.      language = 'en'
  6.      __author__ = '77ja65'
  7.      oldest_article = 4
  8.      max_articles_per_feed = 50
  9.      no_stylesheets = True
  10.      masthead_url          = 'http://heraldnet.com/images/hnet/jQueryComponents/jQueryNavigation/heraldnet_logo.png'
  11.      extra_css      = '.headline {font-size: x-large;} \n .fact { padding-top: 10pt  }'
  12.  
  13.      feeds          = [(u'Local News',
  14.  u'http://heraldnet.com/section/RSS02&mime=xml'),
  15.          (u'Sports', u'http://heraldnet.com/section/RSS04&mime=xml'),
  16.          (u'Entertainment',
  17.  u'http://heraldnet.com/section/RSS07&mime=xml'),
  18.          (u'Life', u'http://heraldnet.com/section/RSS03&mime=xml'),
  19.          (u'Breaking News',
  20.  u'http://heraldnet.com/section/RSS34&mime=xml'),
  21.          (u'Seahawks', u'http://heraldnet.com/section/RSS22&mime=xml'),
  22.          (u'HeraldNet', u'http://heraldnet.com/section/RSS01&mime=xml'),
  23.          (u'Inside Everett',
  24.  u'http://heraldnet.com/section/RSS26&mime=xml')
  25.          ]
  26.  
  27.      def print_version(self, url):
  28.        return url + "&template=PrinterFriendly"
  29.  
  30.      extra_css = '''
  31.                      h1{font-family:Arial,Helvetica,sans-serif; font-
  32.  weight:bold;font-size:large;}
  33.                      h2{font-family:Arial,Helvetica,sans-serif; font-
  34.  weight:normal;font-size:small;}
  35.                  '''
  36.  
  37.