home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_4129 < prev    next >
Encoding:
Text File  |  2010-07-14  |  1.3 KB  |  35 lines

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class AdvancedUserRecipe1278773519(BasicNewsRecipe):
  4.     title          = u'Waco Tribune Herald'
  5.     __author__ = 'rty'
  6.     pubisher  = 'A Robinson Media Company'
  7.     description           = 'Waco, Texas, Newspaper'
  8.     category              = 'News, Texas, Waco'
  9.     oldest_article = 7
  10.     max_articles_per_feed = 100
  11.  
  12.     feeds          = [
  13.     (u'News', u'http://www.wacotrib.com/news/index.rss2'),
  14.     (u'Sports', u'http://www.wacotrib.com/sports/index.rss2'),
  15.     (u'AccessWaco', u'http://www.wacotrib.com/accesswaco/index.rss2'),
  16.     (u'Opinions', u'http://www.wacotrib.com/opinion/index.rss2')
  17.     ]
  18.  
  19.     remove_javascript = True
  20.     use_embedded_content   = False
  21.     no_stylesheets = True
  22.     language = 'en'
  23.     encoding               = 'utf-8'
  24.     conversion_options = {'linearize_tables':True}
  25.     masthead_url = 'http://media.wacotrib.com/designimages/wacotrib_logo.jpg'
  26.     keep_only_tags = [
  27.                               dict(name='div', attrs={'class':'twoColumn left'}),
  28.                                ]
  29.     remove_tags = [
  30.                     dict(name='div', attrs={'class':'right blueLinks'}),
  31.                          ]
  32.     remove_tags_after = [
  33.                   dict(name='div', attrs={'class':'dottedRule'}),
  34.                          ]
  35.