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

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class DallasNews(BasicNewsRecipe):
  4.     title          = u'The Dallas Morning News'
  5.     language       = 'en'
  6.     oldest_article = 2 #days
  7.     max_articles_per_feed = 25
  8.  
  9.     no_stylesheets = True
  10.     use_embedded_content = False
  11.     remove_tags_before = dict(name='h1')
  12.     keep_only_tags = {'class':lambda x: x and 'article' in x}
  13.     remove_tags = [
  14.             {'class':['DMNSocialTools', 'article ', 'article first ', 'article premium']},
  15.     ]
  16.  
  17.     feeds          = [
  18.                       ('Local News',
  19.                           'http://www.dallasnews.com/news/politics/local-politics/?rss'),
  20.                       ('National Politics',
  21.                           'http://www.dallasnews.com/news/politics/national-politic/?rss'),
  22.                       ('State Politics',
  23.                           'http://www.dallasnews.com/news/politics/state-politics/?rss'),
  24.                       ('Religion',
  25.                          'http://www.dallasnews.com/news/religion/?rss'),
  26.                       ('Crime',
  27.                           'http://www.dallasnews.com/news/crime/headlines/?rss'),
  28.                       ('Celebrity News',
  29.                           'http://www.dallasnews.com/entertainment/celebrity-news/?rss&listname=TopStories'),
  30.                       ('Nation',
  31.                           'http://www.dallasnews.com/news/nation-world/nation/?rss'),
  32.                       ('World',
  33.                           'http://www.dallasnews.com/news/nation-world/world/?rss'),
  34.                     ]
  35.  
  36.