| 1 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 2 |
|
| 3 |
|
| 4 |
class AdvancedUserRecipe1291540961(BasicNewsRecipe): |
| 5 |
title = 'Radio Praha' |
| 6 |
__author__ = 'Francois Pellicaan' |
| 7 |
description = 'News and information from and about The Czech republic. ' |
| 8 |
oldest_article = 7 |
| 9 |
max_articles_per_feed = 100 |
| 10 |
no_stylesheets = True |
| 11 |
use_embedded_content = False |
| 12 |
remove_empty_feeds = True |
| 13 |
encoding = 'utf8' |
| 14 |
publisher = 'Radio Prague' |
| 15 |
category = 'News' |
| 16 |
language = 'en_CZ' |
| 17 |
publication_type = 'newsportal' |
| 18 |
|
| 19 |
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; }' # noqa: E501 |
| 20 |
|
| 21 |
keep_only_tags = [dict(name='div', attrs={'class': ['main']})] |
| 22 |
remove_tags = [dict(name='div', attrs={'class': ['cleaner', 'options', 'toolsXXL']}), dict(name='ul', attrs={'class': ['tools']})] |
| 23 |
feeds = [ |
| 24 |
('Current Affairs', 'http://www.radio.cz/feeds/rss/en/themes/curraffrs.xml'), |
| 25 |
('Society', 'http://www.radio.cz/feeds/rss/en/themes/society.xml'), |
| 26 |
('European Union', 'http:http://www.radio.cz/feeds/rss/en/themes/eu.xml'), |
| 27 |
('Foreign policy', 'http://www.radio.cz/feeds/rss/en/themes/foreignpolicy.xml'), |
| 28 |
('Business', 'http://www.radio.cz/feeds/rss/en/themes/business.xml'), |
| 29 |
('Culture', 'http://www.radio.cz/feeds/rss/en/themes/culture.xml'), |
| 30 |
('Czechs abroad', 'http://www.radio.cz/feeds/rss/en/themes/czechabroad.xml'), |
| 31 |
('History', 'http://www.radio.cz/feeds/rss/en/themes/history.xml'), |
| 32 |
('Nature', 'http://www.radio.cz/feeds/rss/en/themes/nature.xml'), |
| 33 |
('Science', 'http://www.radio.cz/feeds/rss/en/themes/science.xml'), |
| 34 |
('Sport', 'http://www.radio.cz/feeds/rss/en/themes/sport.xml'), |
| 35 |
('Travel', 'http://www.radio.cz/feeds/rss/en/themes/travel.xml'), |
| 36 |
] |