1# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
2from __future__ import unicode_literals
3from calibre.web.feeds.recipes import BasicNewsRecipe
4
5
6class denikReferendumRecipe(BasicNewsRecipe):
7    __author__ = 'bubak'
8    title = u'Den\u00edk Referendum'
9    publisher = u''
10    description = ''
11    oldest_article = 1
12    max_articles_per_feed = 20
13
14    feeds = [
15        (u'Deník Referendum', u'http://feeds.feedburner.com/DenikReferendum')
16    ]
17
18    language = 'cs'
19    remove_javascript = True
20    no_stylesheets = True
21    use_embedded_content = False
22    remove_attributes = []
23    remove_tags_after = dict(name='div', attrs={'class': ['text']})
24    remove_tags = [dict(name='div', attrs={'class': ['box boxLine', 'box noprint', 'box']}),
25                   dict(name='h3', attrs={'class': 'head alt'})]
26
27    keep_only_tags = [dict(name='div',   attrs={'id': ['content']})]
28