From e149160e9aa522c369d965a5edc85704576d3d97 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 15 May 2011 08:25:51 -0600 Subject: [PATCH] Various news german sources by schuster --- recipes/pro_physik.recipe | 22 ++++++++++++++++++++++ recipes/spektrum.recipe | 28 ++++++++++++++++++++++++++++ recipes/technology_review_de.recipe | 24 ++++++++++++++++++++++++ 3 files changed, 74 insertions(+) create mode 100644 recipes/pro_physik.recipe create mode 100644 recipes/spektrum.recipe create mode 100644 recipes/technology_review_de.recipe diff --git a/recipes/pro_physik.recipe b/recipes/pro_physik.recipe new file mode 100644 index 0000000000..eca10e96f3 --- /dev/null +++ b/recipes/pro_physik.recipe @@ -0,0 +1,22 @@ +from calibre.web.feeds.recipes import BasicNewsRecipe +class AdvancedUserRecipe1303841067(BasicNewsRecipe): + + title = u'Pro Physik' + __author__ = 'schuster' + oldest_article = 4 + max_articles_per_feed = 100 + no_stylesheets = True + use_embedded_content = False + language = 'de' + remove_javascript = True + cover_url = 'http://www.pro-physik.de/Phy/images/site/prophysik_logo1.jpg' + + + def print_version(self, url): + return url.replace('leadArticle.do', 'print.do') + + + feeds = [(u'Hightech', u'http://www.pro-physik.de/Phy/hightechfeed.xml'), + (u'Forschung', u'http://www.pro-physik.de/Phy/forschungfeed.xml'), + (u'Magazin', u'http://www.pro-physik.de/Phy/magazinfeed.xml')] + diff --git a/recipes/spektrum.recipe b/recipes/spektrum.recipe new file mode 100644 index 0000000000..d52c44b127 --- /dev/null +++ b/recipes/spektrum.recipe @@ -0,0 +1,28 @@ +from calibre.web.feeds.recipes import BasicNewsRecipe +class AdvancedUserRecipe1303841067(BasicNewsRecipe): + title = u'Spektrum (der Wissenschaft)' + __author__ = 'schuster' + oldest_article = 7 + max_articles_per_feed = 100 + language = 'de' + cover_url = 'http://upload.wikimedia.org/wikipedia/de/3/3b/Spektrum_der_Wissenschaft_Logo.svg' + + remove_tags = [dict(attrs={'class':['hauptnaviPkt gainlayout', 'hauptnaviButton', 'suchButton', 'suchbegriffKasten', 'loginButton', 'subnavigation', 'artikelInfoLeiste gainlayout', 'artikelTools', 'nurLetzteSeite', 'link', 'boxUnterArtikel', 'leserbriefeBlock', 'boxTitel', 'boxInhalt', 'sehrklein', 'boxabstand', 'werbeboxinhalt', 'rbabstand', 'bildlinks', 'rechtebox', 'denkmalbox', 'denkmalfrage']}), + dict(id=['pflip', 'verlagsleiste', 'bereich', 'bannerVertikal', 'headerLogoLink', 'kopf', 'topNavi', 'headerSchnellsuche', 'headerSchnellsucheWarten', 'navigation', 'navigationL', 'navigationR', 'inhalt', 'rechtespalte', 'sdwboxenshop', 'shopboxen', 'fuss']), + dict(name=['naservice'])] + + def print_version(self,url): + newurl = url.replace('artikel/', 'sixcms/detail.php?id=') + return newurl + '&_druckversion=1' + + + + feeds = [(u'Spektrum der Wissenschaft', u'http://www.spektrum.de/artikel/982623'), + (u'SpektrumDirekt', u'http://www.spektrumdirekt.de/artikel/996406'), + (u'Sterne und Weltraum', u'http://www.astronomie-heute.de/artikel/865248'), + (u'Gehirn & Geist', u'http://www.gehirn-und-geist.de/artikel/982626'), + (u'epoc', u'http://www.epoc.de/artikel/982625') + +] + + filter_regexps = [r'ads\.doubleclick\.net'] diff --git a/recipes/technology_review_de.recipe b/recipes/technology_review_de.recipe new file mode 100644 index 0000000000..b8b67d24b6 --- /dev/null +++ b/recipes/technology_review_de.recipe @@ -0,0 +1,24 @@ +from calibre.web.feeds.recipes import BasicNewsRecipe +class AdvancedUserRecipe1303841067(BasicNewsRecipe): + + title = u'Technology Review' + __author__ = 'schuster' + remove_tags_before = dict(id='keywords') + remove_tags_after = dict(id='kommentar') + remove_tags = [dict(attrs={'class':['navi_oben_pvg', 'navi_oben_tarifr', 'navi_oben_itm', 'navi_oben_eve', 'navi_oben_whi', 'navi_oben_abo', 'navi_oben_shop', 'navi_top_logo', 'navi_top_abschnitt', 'first']}), + dict(id=['footer', 'toolsRight', 'articleInline', 'navigation', 'archive', 'side_search', 'blog_sidebar', 'side_tool', 'side_index']), + dict(name=['script', 'noscript', 'style'])] + oldest_article = 4 + max_articles_per_feed = 100 + no_stylesheets = True + use_embedded_content = False + language = 'de' + remove_javascript = True + + def print_version(self, url): + return url + '?view=print' + + + feeds = [ + (u'Technik News', u'http://www.heise.de/tr/news-atom.xml') ] +