diff --git a/src/libprs500/ebooks/lrf/web/convert_from.py b/src/libprs500/ebooks/lrf/web/convert_from.py index a67e926a27..c94ed937f0 100644 --- a/src/libprs500/ebooks/lrf/web/convert_from.py +++ b/src/libprs500/ebooks/lrf/web/convert_from.py @@ -29,8 +29,11 @@ from libprs500.ebooks.lrf.web.profiles.bbc import BBC from libprs500.ebooks.lrf.web.profiles.newsweek import Newsweek from libprs500.ebooks.lrf.web.profiles.economist import Economist from libprs500.ebooks.lrf.web.profiles.newyorkreview import NewYorkReviewOfBooks +from libprs500.ebooks.lrf.web.profiles.spiegelde import SpiegelOnline +from libprs500.ebooks.lrf.web.profiles.zeitde import ZeitNachrichten -builtin_profiles = [NYTimes, BBC, Newsweek, Economist, NewYorkReviewOfBooks] +builtin_profiles = [NYTimes, BBC, Newsweek, Economist, NewYorkReviewOfBooks, \ + SpiegelOnline, ZeitNachrichten] available_profiles = [i.__module__.rpartition('.')[2] for i in builtin_profiles] def option_parser(): diff --git a/src/libprs500/ebooks/lrf/web/profiles/spiegelde.py b/src/libprs500/ebooks/lrf/web/profiles/spiegelde.py new file mode 100644 index 0000000000..3bcf5eb6d1 --- /dev/null +++ b/src/libprs500/ebooks/lrf/web/profiles/spiegelde.py @@ -0,0 +1,50 @@ +## Copyright (C) 2007 Kovid Goyal kovid@kovidgoyal.net +## Costomized to spiegel.de by S. Dorscht stdoonline@googlemail.com +## Version 0.10 +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2 of the License, or +## (at your option) any later version. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License along +## with this program; if not, write to the Free Software Foundation, Inc., +## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +''' +Fetch Spiegel Online. +''' + +from libprs500.ebooks.lrf.web.profiles import DefaultProfile + +import re + +class SpiegelOnline(DefaultProfile): + + title = 'Spiegel Online' + timefmt = ' [ %Y-%m-%d %a]' + max_recursions = 2 + max_articles_per_feed = 40 + use_pubdate = False + no_stylesheets = True + + preprocess_regexps = \ + [ (re.compile(i[0], re.IGNORECASE | re.DOTALL), i[1]) for i in + [ + # Remove Zum Thema footer + (r'