| 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 denikReferendumRecipe(BasicNewsRecipe): |
| 8 |
__author__ = 'bubak' |
| 9 |
title = 'Den\u00edk Referendum' |
| 10 |
publisher = '' |
| 11 |
description = '' |
| 12 |
oldest_article = 1 |
| 13 |
max_articles_per_feed = 20 |
| 14 |
|
| 15 |
feeds = [('DenĂk Referendum', 'http://feeds.feedburner.com/DenikReferendum')] |
| 16 |
|
| 17 |
language = 'cs' |
| 18 |
remove_javascript = True |
| 19 |
no_stylesheets = True |
| 20 |
use_embedded_content = False |
| 21 |
remove_attributes = [] |
| 22 |
remove_tags_after = dict(name='div', attrs={'class': ['text']}) |
| 23 |
remove_tags = [dict(name='div', attrs={'class': ['box boxLine', 'box noprint', 'box']}), dict(name='h3', attrs={'class': 'head alt'})] |
| 24 |
|
| 25 |
keep_only_tags = [dict(name='div', attrs={'id': ['content']})] |