mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
57 lines
2.7 KiB
Plaintext
57 lines
2.7 KiB
Plaintext
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class BasicUserRecipe1316245412(BasicNewsRecipe):
|
|
title = u'Cicero Online'
|
|
description = u'Magazin f\xfcr politische Kultur (RSS Version)'
|
|
publisher = 'Ringier Publishing GmbH'
|
|
category = 'news, politics, Germany'
|
|
language = 'de'
|
|
encoding = 'UTF-8'
|
|
__author__ = 'Armin Geller' # Upd. 2011-09-23
|
|
|
|
oldest_article = 7
|
|
max_articles_per_feed = 100
|
|
no_stylesheets = True
|
|
auto_cleanup = False
|
|
|
|
# remove_javascript = True
|
|
|
|
remove_tags = [
|
|
dict(name='div', attrs={'id': ["header", "navigation", "skip-link",
|
|
"header-print", "header-print-url", "meta-toolbar", "footer"]}),
|
|
dict(name='div', attrs={'class': ["region region-sidebar-first column sidebar", "breadcrumb",
|
|
"breadcrumb-title", "meta", "comment-wrapper",
|
|
"field field-name-field-show-teaser-right field-type-list-boolean field-label-above",
|
|
"page-header",
|
|
"view view-alle-karikaturen view-id-alle_karikaturen view-display-id-default view-dom-id-1",
|
|
"pagination",
|
|
"view view-letzte-videos view-id-letzte_videos view-display-id-default view-dom-id-1",
|
|
"view view-letzte-videos view-id-letzte_videos view-display-id-default view-dom-id-2", # 2011-09-23
|
|
"view view-alle-karikaturen view-id-alle_karikaturen view-display-id-default view-dom-id-2", # 2011-09-23
|
|
]}),
|
|
dict(name='div', attrs={'title': ["Dossier Auswahl"]}),
|
|
dict(name='h2', attrs={'class': ["title comment-form"]}),
|
|
dict(name='form', attrs={
|
|
'class': ["comment-form user-info-from-cookie"]}),
|
|
dict(name='table', attrs={
|
|
'class': ["mcx-social-horizontal", "page-header"]}),
|
|
]
|
|
|
|
feeds = [
|
|
(u'Das gesamte Portfolio', u'http://www.cicero.de/rss.xml'),
|
|
(u'Berliner Republik', u'http://www.cicero.de/berliner-republik.xml'),
|
|
(u'Weltb\xfchne', u'http://www.cicero.de/weltbuehne.xml'),
|
|
(u'Kapital', u'http://www.cicero.de/kapital.xml'),
|
|
(u'Salon', u'http://www.cicero.de/salon.xml'),
|
|
# seems not to be in use at the moment
|
|
(u'Blogs', u'http://www.cicero.de/blogs.xml'),
|
|
]
|
|
|
|
def print_version(self, url):
|
|
return url + '?print'
|
|
|
|
# def get_cover_url(self):
|
|
# return 'http://www.cicero.de/sites/all/themes/cicero/logo.png' # need to
|
|
# find a good logo on their home page!
|