Debian Codegraph @

recipes/novinky.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 NovinkyCZ(BasicNewsRecipe):
8 title = 'Novinky'
9 __author__ = 'Tomas Latal'
10 __version__ = '1.1'
11 __date__ = '30 April 2011'
12 description = 'News from server Novinky.cz'
13 oldest_article = 1
14 max_articles_per_feed = 10
15 encoding = 'utf8'
16 publisher = 'Novinky'
17 category = 'news, CZ'
18 language = 'cs'
19 publication_type = 'newsportal'
20 no_stylesheets = True
21 remove_javascript = True
22 cover_url = 'http://img193.imageshack.us/img193/3039/novinkycover.jpg'
23 extra_css = 'p.acmDescription{font-style:italic;} p.acmAuthor{font-size:0.8em; color:#707070}'
24
25 feeds = [
26 ('Dom\xe1c\xed', 'http://www.novinky.cz/rss/domaci/'),
27 ('Zahrani\u010d\xed', 'http://www.novinky.cz/rss/zahranicni/'),
28 ('Krimi', 'http://www.novinky.cz/rss/krimi/'),
29 ('Ekonomika', 'http://www.novinky.cz/rss/ekonomika/'),
30 ('Finance', 'http://www.novinky.cz/rss/finance/'),
31 ('Kultura', 'http://www.novinky.cz/rss/kultura/'),
32 ('Koktejl', 'http://www.novinky.cz/rss/koktejl/'),
33 ('Internet a PC', 'http://www.novinky.cz/rss/internet-a-pc/'),
34 ('Auto-moto', 'http://www.novinky.cz/rss/auto/'),
35 ]
36
37 remove_tags_before = dict(id='articleContent')
38
39 remove_tags_after = [dict(id='movedArticleAuthors')]
40
41 remove_tags = [dict(name='div', attrs={'id': ['articleColumnInfo', 'pictureInnerBox']}), dict(name='p', attrs={'id': ['articleDate']})]