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

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class AdvancedUserRecipe1277647803(BasicNewsRecipe):
  4.     title          = u'Winnipeg Sun'
  5.     __author__            = 'rty'
  6.     __version__            = '1.0'
  7.     oldest_article = 2
  8.     pubisher  = 'www.winnipegsun.com'
  9.     description           = 'Winnipeg Newspaper'
  10.     category              = 'News, Winnipeg, Canada'
  11.     max_articles_per_feed = 100
  12.     no_stylesheets        = True
  13.     encoding              = 'UTF-8'
  14.     remove_javascript     = True
  15.     use_embedded_content  = False
  16.     language = 'en_CA'
  17.     feeds          = [
  18.     (u'News', u'http://www.winnipegsun.com/news/rss.xml'),
  19.     (u'Columnists', u'http://www.winnipegsun.com/columnists/rss.xml'),
  20.     (u'Editorial', u'http://www.winnipegsun.com/comment/editorial/rss.xml'),
  21.     (u'Entertainments', u'http://www.winnipegsun.com/entertainment/rss.xml'),
  22.     (u'Life', u'http://www.winnipegsun.com/life/rss.xml'),
  23.     (u'Money', u'http://www.winnipegsun.com/money/rss.xml')
  24.     ]
  25.     keep_only_tags = [
  26.                               dict(name='div', attrs={'id':'article'}),
  27.                               ]
  28.     remove_tags = [
  29.                dict(name='div', attrs={'class':['leftBox','bottomBox clear']}),
  30.         dict(name='ul', attrs={'class':'tabs dl contentSwap'}),
  31.                dict(name='div', attrs={'id':'commentsBottom'}),
  32.                       ]
  33.     remove_tags_after = [
  34.                              dict(name='div', attrs={'class':'bottomBox clear'})
  35.                            ]
  36.