| 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 ceskenovinyRecipe(BasicNewsRecipe): |
| 8 |
__author__ = 'bubak' |
| 9 |
title = 'České Noviny' |
| 10 |
description = 'ceskenoviny.cz' |
| 11 |
oldest_article = 1 |
| 12 |
max_articles_per_feed = 20 |
| 13 |
|
| 14 |
feeds = [('Domácí', 'http://www.ceskenoviny.cz/sluzby/rss/domov.php')] |
| 15 |
|
| 16 |
language = 'cs' |
| 17 |
cover_url = 'http://i4.cn.cz/grafika/cn_logo-print.gif' |
| 18 |
remove_javascript = True |
| 19 |
no_stylesheets = True |
| 20 |
|
| 21 |
remove_attributes = [] |
| 22 |
filter_regexps = [r'img.aktualne.centrum.cz'] |
| 23 |
|
| 24 |
keep_only_tags = [dict(name='div', attrs={'id': 'clnk'})] |