| 1 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 2 |
|
| 3 |
|
| 4 |
class BasicUserRecipe1316245412(BasicNewsRecipe): |
| 5 |
title = 'Cicero Online' |
| 6 |
description = 'Magazin f\xfcr politische Kultur (RSS Version)' |
| 7 |
publisher = 'Ringier Publishing GmbH' |
| 8 |
category = 'news, politics, Germany' |
| 9 |
language = 'de' |
| 10 |
encoding = 'UTF-8' |
| 11 |
__author__ = 'Armin Geller' # Upd. 2011-09-23 |
| 12 |
|
| 13 |
oldest_article = 7 |
| 14 |
max_articles_per_feed = 100 |
| 15 |
no_stylesheets = True |
| 16 |
auto_cleanup = False |
| 17 |
|
| 18 |
# remove_javascript = True |
| 19 |
|
| 20 |
remove_tags = [ |
| 21 |
dict(name='div', attrs={'id': ['header', 'navigation', 'skip-link', 'header-print', 'header-print-url', 'meta-toolbar', 'footer']}), |
| 22 |
dict( |
| 23 |
name='div', |
| 24 |
attrs={ |
| 25 |
'class': [ |
| 26 |
'region region-sidebar-first column sidebar', |
| 27 |
'breadcrumb', |
| 28 |
'breadcrumb-title', |
| 29 |
'meta', |
| 30 |
'comment-wrapper', |
| 31 |
'field field-name-field-show-teaser-right field-type-list-boolean field-label-above', |
| 32 |
'page-header', |
| 33 |
'view view-alle-karikaturen view-id-alle_karikaturen view-display-id-default view-dom-id-1', |
| 34 |
'pagination', |
| 35 |
'view view-letzte-videos view-id-letzte_videos view-display-id-default view-dom-id-1', |
| 36 |
'view view-letzte-videos view-id-letzte_videos view-display-id-default view-dom-id-2', # 2011-09-23 |
| 37 |
'view view-alle-karikaturen view-id-alle_karikaturen view-display-id-default view-dom-id-2', # 2011-09-23 |
| 38 |
] |
| 39 |
}, |
| 40 |
), |
| 41 |
dict(name='div', attrs={'title': ['Dossier Auswahl']}), |
| 42 |
dict(name='h2', attrs={'class': ['title comment-form']}), |
| 43 |
dict(name='form', attrs={'class': ['comment-form user-info-from-cookie']}), |
| 44 |
dict(name='table', attrs={'class': ['mcx-social-horizontal', 'page-header']}), |
| 45 |
] |
| 46 |
|
| 47 |
feeds = [ |
| 48 |
('Das gesamte Portfolio', 'http://www.cicero.de/rss.xml'), |
| 49 |
('Berliner Republik', 'http://www.cicero.de/berliner-republik.xml'), |
| 50 |
('Weltb\xfchne', 'http://www.cicero.de/weltbuehne.xml'), |
| 51 |
('Kapital', 'http://www.cicero.de/kapital.xml'), |
| 52 |
('Salon', 'http://www.cicero.de/salon.xml'), |
| 53 |
# seems not to be in use at the moment |
| 54 |
('Blogs', 'http://www.cicero.de/blogs.xml'), |
| 55 |
] |
| 56 |
|
| 57 |
def print_version(self, url): |
| 58 |
return url + '?print' |
| 59 |
|
| 60 |
# def get_cover_url(self): |
| 61 |
# return 'http://www.cicero.de/sites/all/themes/cicero/logo.png' # need to |
| 62 |
# find a good logo on their home page! |