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

  1. #!/usr/bin/env python
  2. # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
  3.  
  4. from calibre.web.feeds.news import BasicNewsRecipe
  5.  
  6. class HoustonChronicle(BasicNewsRecipe):
  7.  
  8.     title          = u'The Houston Chronicle'
  9.     description    = 'News from Houston, Texas'
  10.     __author__       = 'Kovid Goyal'
  11.     language       = 'en'
  12.     timefmt        = ' [%a, %d %b, %Y]'
  13.     no_stylesheets = True
  14.     use_embedded_content = False
  15.     remove_attributes = ['style']
  16.  
  17.     oldest_article = 2.0
  18.  
  19.     keep_only_tags = {'class':lambda x: x and ('hst-articletitle' in x or
  20.         'hst-articletext' in x or 'hst-galleryitem' in x)}
  21.  
  22.     feeds = [
  23.             ('News', "http://www.chron.com/rss/feed/News-270.php"),
  24.             ('Sports',
  25.                 'http://www.chron.com/sports/headlines/collectionRss/Sports-Headlines-Staff-Stories-10767.php'),
  26.             ('Neighborhood',
  27.                 'http://www.chron.com/rss/feed/Neighborhood-305.php'),
  28.             ('Business', 'http://www.chron.com/rss/feed/Business-287.php'),
  29.             ('Entertainment',
  30.                 'http://www.chron.com/rss/feed/Entertainment-293.php'),
  31.             ('Editorials',
  32.                 'http://www.chron.com/opinion/editorials/collectionRss/Opinion-Editorials-Headline-List-10567.php'),
  33.             ('Life', 'http://www.chron.com/rss/feed/Life-297.php'),
  34.             ('Science & Tech',
  35.                 'http://www.chron.com/rss/feed/AP-Technology-and-Science-266.php'),
  36.         ]
  37.  
  38.  
  39.