Debian Codegraph @

recipes/mesec.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 MesecCZ(BasicNewsRecipe):
8 title = 'M\u011b\u0161ec'
9 __author__ = 'Tomas Latal'
10 __version__ = '1.0'
11 __date__ = '30 April 2011'
12 description = 'Zpr\xe1vi\u010dky a \u010dl\xe1nky z Mesec.cz'
13 oldest_article = 1
14 max_articles_per_feed = 10
15 encoding = 'utf8'
16 publisher = 'Internet Info s.r.o.'
17 category = 'finance,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://www.mesec.cz/rss/aktuality/'), ('\u010cl\xe1nky', 'http://www.mesec.cz/rss/clanky/')]
27
28 remove_tags_before = dict(id='main')
29
30 remove_tags_after = [dict(id='main')]
31
32 remove_tags = [
33 dict(
34 attrs={
35 'class': [
36 'author clear',
37 'tags-rubrics',
38 'box border style1 links clear',
39 'enquiry clear',
40 'serial',
41 'box border style1 TitleList',
42 'breadcrumb clear',
43 'article-discussion box border style1 monitoringComponentArticle',
44 'link-more border prev-next clear',
45 ]
46 }
47 ),
48 dict(id=['discussionList', 'similarItems', 'sidebar', 'footer', 'opl', 'promo-box']),
49 ]