# -*- coding: utf-8 -*- from calibre.web.feeds.news import BasicNewsRecipe class AdvancedUserRecipe1291540961(BasicNewsRecipe): title = u'Radio Praha' __author__ = 'Francois Pellicaan' description = u'Česká oficiální mezinárodní vysílací stanice.' oldest_article = 7 max_articles_per_feed = 100 no_stylesheets = True use_embedded_content = False remove_empty_feeds = True encoding = 'utf8' publisher = u'Český rozhlas' category = 'News' language = 'cs' publication_type = 'newsportal' 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; }' # noqa keep_only_tags = [ dict(name='div', attrs={'class': ['main']}) ] remove_tags = [ dict(name='div', attrs={'class': ['cleaner', 'options', 'toolsXXL']}), dict(name='ul', attrs={'class': ['tools']}) ] feeds = [ (u'Domácí politika', 'http://www.radio.cz/feeds/rss/cs/oblast/dompol.xml'), (u'Společnost', 'http://www.radio.cz/feeds/rss/cs/oblast/spolecnost.xml'), (u'Evropská unie', 'http://www.radio.cz/feeds/rss/cs/oblast/eu.xml'), (u'Zahraniční politika', 'http://www.radio.cz/feeds/rss/cs/oblast/zahrpol.xml'), (u'Ekonomika', 'http://www.radio.cz/feeds/rss/cs/oblast/ekonomika.xml'), (u'Kultura', 'http://www.radio.cz/feeds/rss/cs/oblast/kultura.xml'), (u'Krajané', 'http://www.radio.cz/feeds/rss/cs/oblast/krajane.xml'), (u'Historie', 'http://www.radio.cz/feeds/rss/cs/oblast/historie.xml'), (u'Příroda', 'http://www.radio.cz/feeds/rss/cs/oblast/priroda.xml'), (u'Věda', 'http://www.radio.cz/feeds/rss/cs/oblast/veda.xml'), (u'Sport', 'http://www.radio.cz/feeds/rss/cs/oblast/sport.xml'), (u'Cestování', 'http://www.radio.cz/feeds/rss/cs/oblast/cestovani.xml'), ]