Debian Codegraph @

recipes/kudy_z_nudy.recipe

raw
1 # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
2 from __future__ import unicode_literals
3
4 from calibre.web.feeds.recipes import BasicNewsRecipe
5
6
7 class kudyznudyRecipe(BasicNewsRecipe):
8 __author__ = 'bubak'
9 title = 'Kudy z nudy'
10 publisher = ''
11 description = 'kudyznudy.cz'
12 oldest_article = 3
13 max_articles_per_feed = 20
14 use_embedded_content = False
15
16 feeds = [('Praha nejnovější', 'http://www.kudyznudy.cz/RSS/Charts.aspx?Type=Newest&Lang=cs-CZ&RegionId=1')]
17
18 language = 'cs'
19 cover_url = 'http://www.kudyznudy.cz/App_Themes/KzN/Images/Containers/Header/HeaderLogoKZN.png'
20 remove_javascript = True
21 no_stylesheets = True
22 extra_css = '''
23 '''
24
25 remove_attributes = []
26 remove_tags_before = dict(name='div', attrs={'class': ['C_WholeContentPadding']})
27 remove_tags_after = dict(name='div', attrs={'class': ['SurroundingsContainer']})
28 remove_tags = [dict(name='div', attrs={'class': ['Details', 'buttons', 'SurroundingsContainer', 'breadcrumb']})]
29
30 keep_only_tags = []