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

  1.  
  2. from calibre.web.feeds.news import BasicNewsRecipe
  3.  
  4. class AdvancedUserRecipe1291540961(BasicNewsRecipe):
  5.  
  6.     title          = u'Radio Praha'
  7.     __author__             = 'Francois Pellicaan'
  8.     description            = 'News and information from and about The Czech republic. '
  9.     oldest_article = 7
  10.     max_articles_per_feed = 100
  11.     no_stylesheets         = True
  12.     use_embedded_content   = False
  13.     remove_empty_feeds     = True
  14.     encoding               = 'utf8'
  15.     publisher              = 'Radio Prague'
  16.     category               = 'News'
  17.     language               = 'en_CZ'
  18.     publication_type       = 'newsportal'
  19.  
  20.     extra_css = 'h1 .section { display: block; text-transform: uppercase; font-size: 10px; margin-top: 4em; } \n .title { font-size: 14px; margin-top: 4em; } \n a.photo { display: block; clear:both; }  \n .caption { font-size: 9px; display: block; clear:both; padding:0px 0px 20px 0px; } \n a { font-type: normal; }'
  21.  
  22.  
  23.     keep_only_tags = [
  24.                        dict(name='div', attrs={'class':['main']})
  25.                         ]
  26.     remove_tags = [
  27.                        dict(name='div', attrs={'class':['cleaner', 'options', 'toolsXXL']}),
  28.        dict(name='ul', attrs={'class':['tools']})
  29.                         ]
  30.     feeds = [
  31.                       (u'Current Affairs', 'http://www.radio.cz/feeds/rss/en/themes/curraffrs.xml'),
  32.                       (u'Society', 'http://www.radio.cz/feeds/rss/en/themes/society.xml'),
  33.                       (u'European Union', 'http:http://www.radio.cz/feeds/rss/en/themes/eu.xml'),
  34.                       (u'Foreign policy', 'http://www.radio.cz/feeds/rss/en/themes/foreignpolicy.xml'),
  35.                       (u'Business', 'http://www.radio.cz/feeds/rss/en/themes/business.xml'),
  36.                       (u'Culture', 'http://www.radio.cz/feeds/rss/en/themes/culture.xml'),
  37.                       (u'Czechs abroad', 'http://www.radio.cz/feeds/rss/en/themes/czechabroad.xml'),
  38.                       (u'History', 'http://www.radio.cz/feeds/rss/en/themes/history.xml'),
  39.                       (u'Nature', 'http://www.radio.cz/feeds/rss/en/themes/nature.xml'),
  40.                       (u'Science', 'http://www.radio.cz/feeds/rss/en/themes/science.xml'),
  41.                       (u'Sport', 'http://www.radio.cz/feeds/rss/en/themes/sport.xml'),
  42.                       (u'Travel', 'http://www.radio.cz/feeds/rss/en/themes/travel.xml'),
  43.                     ]
  44.