I made a updat for the recipe Zeit-Online.de. The old one had some errors. The cover will have again a weekly update.
Spoiler:
Code:
__license__ = 'GPL v3'
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
'''
Fetch Zeit-Online.de
'''
from calibre.web.feeds.news import BasicNewsRecipe
from datetime import date
class ZeitDe(BasicNewsRecipe):
__author__ = 'Armin Geller' # AGe 2012-10-13
title = u'Zeit-Online'
description = u'German online portal of newspaper Die Zeit'
publisher = 'ZEIT ONLINE GmbH'
category = 'news, Germany'
timefmt = ' [%a, %d %b %Y]'
publication_type = 'newspaper'
language = 'de_DE'
encoding = 'UTF-8'
oldest_article = 7
max_articles_per_feed = 100
remove_empty_feeds = True
auto_cleanup = True
# no_stylesheets = True
# conversion_options = {'base_font_size': 10}
masthead_url = 'http://images.zeit.de/static/img/logo_247x30.png'
year = str(date.today().isocalendar()[0]) # [0]=year [1]=week number [2]=week day
week = str(date.today().isocalendar()[1]+1)
cover_url = 'http://images.zeit.de/bilder/titelseiten_zeit/titelfluss/' + year + '/0'+ week + '_001.jpg'
feeds = [
(u'Startseite Die wichtigsten Themen auf einen Blick', u'http://newsfeed.zeit.de/index_xml'),
(u'Politik Ausland und Deutschland', u'http://newsfeed.zeit.de/politik/index'),
(u'Wirtschaft Wirtschaft und Unternehmen', u'http://newsfeed.zeit.de/wirtschaft/index'),
(u'Meinung Autoren kommentieren', u'http://newsfeed.zeit.de/meinung/index'),
(u'Gesellschaft Gesellschaft und soziales Leben', u'http://newsfeed.zeit.de/gesellschaft/index'),
(u'Kultur Literatur, Kunst, Film und Musik', u'http://newsfeed.zeit.de/kultur/index'),
(u'Wissen Wissenschaft, Gesundheit, Umwelt und Geschichte', u'http://newsfeed.zeit.de/wissen/index'),
(u'Digital Hardware, Software, Internet, Datenschutz', u'http://newsfeed.zeit.de/digital/index'),
(u'Studium ZEIT ONLINE für Studenten', u'http://newsfeed.zeit.de/studium/index'),
(u'Karriere Für Ein-, Um- und Aufsteiger', u'http://newsfeed.zeit.de/karriere/index'),
(u'Lebensart Freizeit und Leben', u'http://newsfeed.zeit.de/lebensart/index'),
(u'Reisen All inclusive und individuell', u'http://newsfeed.zeit.de/reisen/index'),
(u'Auto Modelle und Trends', u'http://newsfeed.zeit.de/auto/index'),
(u'Sport Sieg und Niederlage', u'http://newsfeed.zeit.de/sport/index')
]
def print_version(self, url):
return url + '/komplettansicht?print=true'
Have a nice weekend.