Debian Codegraph @

recipes/podnikatel.recipe

raw
1 __license__ = 'GPL v3'
2 __copyright__ = '2011, Tomas Latal<latal.tomas at gmail.com>'
3
4 from calibre.web.feeds.news import BasicNewsRecipe
5
6
7 class PodnikatelCZ(BasicNewsRecipe):
8 title = 'Podnikatel'
9 __author__ = 'Tomas Latal'
10 __version__ = '1.0'
11 __date__ = '30 April 2011'
12 description = 'Aktuality a \u010dl\xe1nky z Podnikatel.cz'
13 oldest_article = 1
14 max_articles_per_feed = 10
15 encoding = 'utf8'
16 publisher = 'Internet Info s.r.o.'
17 category = 'podnikani, bussiness, CZ'
18 language = 'cs'
19 publication_type = 'newsportal'
20 no_stylesheets = True
21 remove_javascript = True
22 extra_css = '''p.perex{font-size: 1.2em; margin: 0 0 10px 0;line-height: 1.4;padding: 0 0 10px 0;font-weight: bold;}
23 p.perex img {display:none;}
24 .urs p {margin: 0 0 0.8em 0;}'''
25
26 feeds = [('Aktuality', 'http://rss.podnikatel.cz/aktuality'), ('\u010cl\xe1nky', 'http://rss.podnikatel.cz/clanky')]
27
28 remove_tags_before = dict(id='art-content')
29
30 remove_tags_after = [dict(id='art-content')]
31
32 remove_tags = [
33 dict(
34 attrs={
35 'class': ['socialshare', 'box-blue', 'author clear', 'labels-terms', 'box diskuze', 'ad', 'page-nav right', 'infobox', 'box zpravy', 's-clanky']
36 }
37 ),
38 dict(id=['path', 'article-tools', 'discussionList', 'similarItems', 'promo-box']),
39 ]