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

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class AdvancedUserRecipe1275798572(BasicNewsRecipe):
  4.     title          = u'CBC Canada'
  5.     publisher             = 'www.cbc.ca'
  6.     language = 'en_CA'
  7.     __author__ = 'rty'
  8.     category              = 'news'
  9.     oldest_article = 4
  10.     max_articles_per_feed = 100
  11.     remove_javascript = True
  12.     use_embedded_content   = False
  13.     no_stylesheets = True
  14.     masthead_url = 'http://www.cbc.ca/includes/gfx/cbcnews_logo_09.gif'
  15.     cover_url = 'http://img692.imageshack.us/img692/2814/cbc.png'
  16.     keep_only_tags = [dict(name='div', attrs={'id':['storyhead','storybody']})]
  17.     remove_tags_after  = dict(id=['socialtools'])
  18.     feeds          = [(u'Top Stories', u'http://rss.cbc.ca/lineup/topstories.xml'),
  19.                           (u'World', u'http://rss.cbc.ca/lineup/world.xml'),
  20.                           (u'National', u'http://rss.cbc.ca/lineup/canada.xml'),
  21.                           (u'Manitoba', u'http://rss.cbc.ca/lineup/canada-manitoba.xml'),
  22.                           (u'Politics', u'http://rss.cbc.ca/lineup/politics.xml'),
  23.                           (u'Tech & Science', u'http://rss.cbc.ca/lineup/technology.xml'),
  24.                           (u'Books', u'http://rss.cbc.ca/lineup/arts-books.xml')]
  25.