| 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 VitaliaCZ(BasicNewsRecipe): |
| 8 |
title = 'Vitalia' |
| 9 |
__author__ = 'Tomas Latal' |
| 10 |
__version__ = '1.0' |
| 11 |
__date__ = '30 April 2011' |
| 12 |
description = 'Aktuality a \u010dl\xe1nky z Vitalia.cz' |
| 13 |
oldest_article = 1 |
| 14 |
max_articles_per_feed = 10 |
| 15 |
encoding = 'utf8' |
| 16 |
publisher = 'Internet Info s.r.o.' |
| 17 |
category = 'zdravi, vztahy, wellness, 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 |
span.author {font-size:0.8em; font-style:italic} |
| 25 |
.urs div.rs-tip-major {padding:0.5em; background: #e0e0e0 none repeat scroll 0 0;border: 1px solid #909090;} |
| 26 |
.urs p {margin: 0 0 0.8em 0;}''' |
| 27 |
|
| 28 |
feeds = [ |
| 29 |
('Aktuality', 'http://www.vitalia.cz/rss/aktuality/'), |
| 30 |
('\u010cl\xe1nky', 'http://www.vitalia.cz/rss/clanky/'), |
| 31 |
] |
| 32 |
|
| 33 |
remove_tags_before = dict(id='main') |
| 34 |
|
| 35 |
remove_tags_after = [dict(id='main')] |
| 36 |
|
| 37 |
remove_tags = [ |
| 38 |
dict( |
| 39 |
attrs={ |
| 40 |
'class': [ |
| 41 |
'author clear', |
| 42 |
'tags-rubrics', |
| 43 |
'box border style1 links clear', |
| 44 |
'enquiry clear', |
| 45 |
'serial', |
| 46 |
'box border style1 TitleList', |
| 47 |
'breadcrumb clear', |
| 48 |
'article-discussion box border style1 monitoringComponentArticle', |
| 49 |
'link-more border prev-next clear', |
| 50 |
] |
| 51 |
} |
| 52 |
), |
| 53 |
dict(id=['discussionList', 'similarItems', 'sidebar', 'footer', 'opl', 'promo-box']), |
| 54 |
] |