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

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class TriCityHeraldRecipe(BasicNewsRecipe):
  4.     title          = u'Tri-City Herald'
  5.     description    = 'The Tri-City Herald Mid-Columbia.'
  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':'story_header'}),
  14.                       dict(name='img', attrs={'class':'imageCycle'}),
  15.                       dict(name='div', attrs={'id':['cycleImageCaption', 'story_body']})
  16.                       ]
  17.     remove_tags    = [
  18.                       dict(name='div', attrs={'id':'story_mlt'}),
  19.                       dict(name='a', attrs={'id':'commentCount'}),
  20.                       dict(name=['script', 'noscript', 'style'])]
  21.     extra_css      = 'h1{font: bold 140%;} #cycleImageCaption{font: monospace 60%}'
  22.  
  23.     feeds          = [
  24.                       (u'Tri-City Herald Mid-Columbia', u'http://www.tri-cityherald.com/901/index.rss')
  25.                      ]
  26.