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

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class YakimaHeraldRepublicRecipe(BasicNewsRecipe):
  4.     title          = u'Yakima Herald-Republic'
  5.     description    = 'The Yakima Herald-Republic.'
  6.     language = 'en'
  7.     __author__     = 'Laura Gjovaag'
  8.     oldest_article        = 1.5
  9.     max_articles_per_feed = 100
  10.     no_stylesheets        = True
  11.     remove_javascript     = True
  12.     keep_only_tags = [
  13.                       dict(name='div', attrs={'id':['searchleft', 'headline_credit']}),
  14.                       dict(name='div', attrs={'class':['photo', 'cauthor', 'photocredit']}),
  15.                       dict(name='div', attrs={'id':['content_body', 'footerleft']})
  16.                       ]
  17.     extra_css = '.cauthor {font: monospace 60%;} .photocredit {font: monospace 60%}'
  18.  
  19.     feeds          = [
  20.                       (u'Yakima Herald Online', u'http://feeds.feedburner.com/yhronlinenews'),
  21.                      ]
  22.