2
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
8
from calibre.ebooks.lrf.web.profiles import DefaultProfile
12
class SpiegelOnline(DefaultProfile):
14
title = 'Spiegel Online'
15
timefmt = ' [ %Y-%m-%d %a]'
17
max_articles_per_feed = 40
21
preprocess_regexps = \
22
[ (re.compile(i[0], re.IGNORECASE | re.DOTALL), i[1]) for i in
24
# Remove Zum Thema footer
25
(r'<div class="spArticleCredit.*?</body>', lambda match: '</body>'),
30
return [ ('Spiegel Online', 'http://www.spiegel.de/schlagzeilen/rss/0,5291,,00.xml') ]
33
def print_version(self,url):
34
tokens = url.split(',')
35
tokens[-2:-2] = ['druck|']
36
return ','.join(tokens).replace('|,','-')