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

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class AdvancedUserRecipe1289990851(BasicNewsRecipe):
  4.     title          = u'The Hockey News'
  5.     language = 'en_CA'
  6.     __author__ = 'Nexus'
  7.     oldest_article = 7
  8.     max_articles_per_feed = 25
  9.     no_stylesheets = True
  10.     remove_tags = [dict(name='div', attrs={'class':'article_info'}),
  11.                           dict(name='div', attrs={'class':'photo_details'}),
  12.                           dict(name='div', attrs={'class':'tool_menu'}),
  13.                       dict(name='div', attrs={'id':'comments_container'}),
  14.                           dict(name='div', attrs={'id':'wrapper'})]
  15.     keep_only_tags = [dict(name='h1', attrs={'class':['headline']}),
  16.                         dict(name='div', attrs={'class':['box_container']})]
  17.  
  18.     feeds          = [(u'THN', u'http://www.thehockeynews.com/rss/all_categories.xml')]
  19.  
  20.