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_praha.recipe < prev    next >
Text File  |  2011-09-09  |  2KB  |  45 lines

  1. # -*- coding: utf-8 -*-
  2.  
  3. from calibre.web.feeds.news import BasicNewsRecipe
  4.  
  5. class AdvancedUserRecipe1291540961(BasicNewsRecipe):
  6.  
  7.     title          = u'Radio Praha'
  8.     __author__             = 'Francois Pellicaan'
  9.     description            = u'─îesk├í ofici├íln├¡ mezin├írodn├¡ vys├¡lac├¡ stanice.'
  10.     oldest_article = 7
  11.     max_articles_per_feed = 100
  12.     no_stylesheets         = True
  13.     use_embedded_content   = False
  14.     remove_empty_feeds     = True
  15.     encoding               = 'utf8'
  16.     publisher              = u'─îesk├╜ rozhlas'
  17.     category               = 'News'
  18.     language               = 'cs'
  19.     publication_type       = 'newsportal'
  20.  
  21.     extra_css = u'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; }'
  22.  
  23.  
  24.     keep_only_tags = [
  25.                        dict(name='div', attrs={'class':['main']})
  26.                         ]
  27.     remove_tags = [
  28.                        dict(name='div', attrs={'class':['cleaner', 'options', 'toolsXXL']}),
  29.        dict(name='ul', attrs={'class':['tools']})
  30.                         ]
  31.     feeds = [
  32.                       (u'Dom├íc├¡ politika', 'http://www.radio.cz/feeds/rss/cs/oblast/dompol.xml'),
  33.                       (u'Spole─ìnost', 'http://www.radio.cz/feeds/rss/cs/oblast/spolecnost.xml'),
  34.                       (u'Evropsk├í unie', 'http://www.radio.cz/feeds/rss/cs/oblast/eu.xml'),
  35.                       (u'Zahrani─ìn├¡ politika', 'http://www.radio.cz/feeds/rss/cs/oblast/zahrpol.xml'),
  36.                       (u'Ekonomika', 'http://www.radio.cz/feeds/rss/cs/oblast/ekonomika.xml'),
  37.                       (u'Kultura', 'http://www.radio.cz/feeds/rss/cs/oblast/kultura.xml'),
  38.                       (u'Krajan├⌐', 'http://www.radio.cz/feeds/rss/cs/oblast/krajane.xml'),
  39.                       (u'Historie', 'http://www.radio.cz/feeds/rss/cs/oblast/historie.xml'),
  40.                       (u'P┼Ö├¡roda', 'http://www.radio.cz/feeds/rss/cs/oblast/priroda.xml'),
  41.                       (u'V─¢da', 'http://www.radio.cz/feeds/rss/cs/oblast/veda.xml'),
  42.                       (u'Sport', 'http://www.radio.cz/feeds/rss/cs/oblast/sport.xml'),
  43.                       (u'Cestov├ín├¡', 'http://www.radio.cz/feeds/rss/cs/oblast/cestovani.xml'),
  44.                     ]
  45.