| 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 DigiZoneCZ(BasicNewsRecipe): |
| 8 |
title = 'DigiZone' |
| 9 |
__author__ = 'Tomas Latal' |
| 10 |
__version__ = '1.0' |
| 11 |
__date__ = '30 April 2011' |
| 12 |
description = 'Aktuality a \u010dl\xe1nky z DigiZone.cz' |
| 13 |
oldest_article = 1 |
| 14 |
max_articles_per_feed = 10 |
| 15 |
encoding = 'iso-8859-2' |
| 16 |
publisher = 'Internet Info s.r.o.' |
| 17 |
category = 'digitalni vysilani, televize, 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://rss.digizone.cz/aktuality'), ('\u010cl\xe1nky', 'http://rss.digizone.cz/clanky')] |
| 27 |
|
| 28 |
remove_tags_before = dict(id=['p-article', 'p-actuality']) |
| 29 |
|
| 30 |
remove_tags_after = dict(id=['p-article', 'p-actuality']) |
| 31 |
|
| 32 |
remove_tags = [ |
| 33 |
dict( |
| 34 |
attrs={ |
| 35 |
'class': [ |
| 36 |
'path', |
| 37 |
'mth', |
| 38 |
'lbtr', |
| 39 |
'serial', |
| 40 |
'enquiry', |
| 41 |
'links', |
| 42 |
'dp-n', |
| 43 |
'side', |
| 44 |
'op-ab', |
| 45 |
'op-view', |
| 46 |
'op-sub', |
| 47 |
'op-list', |
| 48 |
] |
| 49 |
} |
| 50 |
), |
| 51 |
dict(id=['opinions', 'discussionList', 'similarItems', 'sidebar', 'footer', 'opl', 'promo-box']), |
| 52 |
] |