Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 10-12-2012, 04:52 PM   #1
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,161
Karma: 1404241
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Spektrum der Wissenschaft (DE)

Since the old recipe wasn't working for a long time I made a new version of the recipe Spektrum der Wissenschaft. The cover design of this version was designed by Rainer Zens, a user from lesen.net and uploaded to Wikipedia. Hope you like this beautiful cover too.

Let me know, if something isn't working.


Spoiler:
Code:
__license__   = 'GPL v3'
__copyright__ = ''
'''
Fetch RSS-Feeds spektrum.de
'''
from calibre.web.feeds.recipes import BasicNewsRecipe
class AdvancedUserRecipe1303841067(BasicNewsRecipe):
    title          = u'Spektrum (der Wissenschaft)'
    __author__  = 'Armin Geller, Bratzzo, Rainer Zenz' # Update Bratzzo & AGE 2012-10-12
    
    oldest_article = 7
    max_articles_per_feed = 100 #100
    no_stylesheets = True
    remove_javascript = True
    remove_empty_feeds = True
    language = 'de_DE'
    # conversion_options = {'base_font_size': 20}

    # cover_url = 'http://upload.wikimedia.org/wikipedia/de/3/3b/Spektrum_der_Wissenschaft_Logo.svg' # old logo   
    # cover_url = 'http://spektrumverlag.de/sixcms/media.php/776/thumbnails/sdwv_faecher.jpg.459370.jpg'
    # cover_url = 'http://spektrumverlag.de/sixcms/media.php/776/thumbnails/sdwv_logo.jpg.432645.jpg'
    cover_url = 'http://upload.wikimedia.org/wikipedia/de/5/59/Spektrum-cover.jpg' # from Rainer Zenz

    extra_css      =  '''
                      h1 {font-size: 2em;}
                      h2 {font-size: 1em; font-style: italic; font-weight: bold;}
                      h3 {font-size: 1em;}
                      h4, h5, h6, .heading, .hgroup {font-size: 1em;}
                      '''

    feeds = [
              (u'Spektrum.de', u'http://www.spektrum.de/alias/rss/spektrum-de-rss-feed/996406'),
              (u'Gehirn & Geist', u'http://www.spektrum.de/alias/rss/gehirn-geist-rss-feed/982626'),
              (u'epoc', u'http://www.spektrum.de/alias/rss/epoc-rss-feed/982625'),
              (u'Spektrum der Wissenschaft', u'http://www.spektrum.de/alias/rss/spektrum-der-wissenschaft-rss-feed/982623'),
              (u'Sterne und Weltraum', u'http://www.spektrum.de/alias/rss/sterne-und-weltraum-rss-feed/865248'),
              (u'Editional', u'http://www.spektrum.de/alias/rss/spektrum-de-editorial/996044'),
              (u'Pressemitteilungen', u'http://www.spektrum.de/alias/rss/pressemitteilungen/995265'),
             ]

    keep_only_tags = [ 
                        dict(name='div', attrs={'class':'border-h clearfix article-top'}),
                        dict(name='div', attrs={'class':'clearfix'}),
                        dict(name='div', attrs={'class':'bilderrahmenlinks'}),
                        dict(name='div', attrs={'class':'relcontainer'}),
                      ]

    remove_tags_after=dict(name='div', attrs={'class':['sidebar-box-head']})

    remove_tags = [
                    dict(attrs={'id':['recommend-article', 'dossierbox', 'cover', 'toc']}),
                    dict(attrs={'class':['sidebar-box-full clearfix', 'linktotop' ]}),
                  ]


Have fun,
DD
Attached Files
File Type: zip Spektrum_AGe_V3.zip (1.1 KB, 254 views)
Divingduck is offline   Reply With Quote
Old 10-18-2012, 03:06 AM   #2
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,161
Karma: 1404241
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
I made a update for this recipe. Some changes in layout and some minor adjustments.

Spoiler:
Code:
__license__   = 'GPL v3'
__copyright__ = ''
'''
Fetch RSS-Feeds spektrum.de
'''
from calibre.web.feeds.recipes import BasicNewsRecipe
class AdvancedUserRecipe1303841067(BasicNewsRecipe):
    title                 = u'Spektrum der Wissenschaft'
    __author__            = 'Armin Geller, Bratzzo, Rainer Zenz' # Update Bratzzo & AGE 2012-10-12
    description           = u'German  online portal of Spektrum der Wissenschaft'
    publisher             = 'Spektrum der Wissenschaft Verlagsgesellschaft mbH'
    category              = 'science news, Germany'
        
    oldest_article        = 7
    max_articles_per_feed = 100
    no_stylesheets        = True
    remove_javascript     = True
    remove_empty_feeds    = True
    language              = 'de_DE'
    
    #conversion_options    = {'base_font_size': 20}

    # cover_url = 'http://upload.wikimedia.org/wikipedia/de/3/3b/Spektrum_der_Wissenschaft_Logo.svg' # old logo   
    cover_url             = 'http://upload.wikimedia.org/wikipedia/de/5/59/Spektrum-cover.jpg' # from Rainer Zenz

    masthead_url          = 'http://www.spektrum.de/fm/861/spektrum.de.png'

    extra_css      =  '''
                      h1 {font-size: 1.6em; text-align: left}
                      h2 {font-size: 1em; font-style: italic; font-weight: normal}
                      h3 {font-size: 1.3em;text-align: left}
                      h4, h5, h6, .heading, .hgroup {font-size: 1em;text-align: left}
                      '''

    feeds = [
              (u'Spektrum.de', u'http://www.spektrum.de/alias/rss/spektrum-de-rss-feed/996406'),
              (u'Spektrum der Wissenschaft', u'http://www.spektrum.de/alias/rss/spektrum-der-wissenschaft-rss-feed/982623'),
              (u'Gehirn & Geist', u'http://www.spektrum.de/alias/rss/gehirn-geist-rss-feed/982626'),
              (u'Epoc', u'http://www.spektrum.de/alias/rss/epoc-rss-feed/982625'),
              (u'Sterne und Weltraum', u'http://www.spektrum.de/alias/rss/sterne-und-weltraum-rss-feed/865248'),
              (u'Editional', u'http://www.spektrum.de/alias/rss/spektrum-de-editorial/996044'),
              (u'Pressemitteilungen', u'http://www.spektrum.de/alias/rss/pressemitteilungen/995265'),
             ]

    keep_only_tags = [ 
                        dict(name='div', attrs={'class':'border-h clearfix article-top'}),
                        dict(name='div', attrs={'class':'clearfix'}),
                        dict(name='div', attrs={'class':'bilderrahmenlinks'}),
                        dict(name='div', attrs={'class':'relcontainer'}),
                      ]

    remove_tags_after=dict(name='div', attrs={'class':['sidebar-box-head']})
    
    remove_tags = [
                    dict(attrs={'id':['recommend-article', 'dossierbox', 'cover', 'toc']}),
                    dict(attrs={'class':['sidebar-box-full clearfix', 'linktotop' ]}),
                  ]


Let me know, if something isn't working.
Attached Files
File Type: zip Spektrum_AGe_V5.zip (1.1 KB, 197 views)
Divingduck is offline   Reply With Quote
Old 07-26-2013, 04:11 AM   #3
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,161
Karma: 1404241
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
I made an update for this recipe. Old cover source wasn't available since long time.

Spoiler:
Code:
##
## Written:      October 2012 (new coding)
## Version:      6.0
## Last update:  2013-07-25
##

__license__   = 'GPL v3'
__copyright__ = ''
'''
Fetch RSS-Feeds spektrum.de
'''
from calibre.web.feeds.recipes import BasicNewsRecipe
class AdvancedUserRecipe1303841067(BasicNewsRecipe):
    title                 = u'Spektrum der Wissenschaft'
    __author__            = 'Armin Geller, Bratzzo, Rainer Zenz' # Update AGE 2013-07-26
    description           = u'German  online portal of Spektrum der Wissenschaft'
    publisher             = 'Spektrum der Wissenschaft Verlagsgesellschaft mbH'
    category              = 'science news, Germany'

    oldest_article        = 7
    max_articles_per_feed = 100
    no_stylesheets        = True
    remove_javascript     = True
    remove_empty_feeds    = True
    language              = 'de'

    #conversion_options    = {'base_font_size': 20}


    #cover_url             = 'http://upload.wikimedia.org/wikipedia/de/5/59/Spektrum-cover.jpg' # from Rainer Zenz
    cover_url             = 'http://www16.zippyshare.com/scaled/52219516/file.html' # AGE 2013-07-26 new cover location

    masthead_url          = 'http://www.spektrum.de/fm/861/spektrum.de.png'

    extra_css      =  '''
                      h1 {font-size: 1.6em; text-align: left}
                      h2 {font-size: 1em; font-style: italic; font-weight: normal}
                      h3 {font-size: 1.3em;text-align: left}
                      h4, h5, h6, .heading, .hgroup {font-size: 1em;text-align: left}
                      '''

    feeds = [
              (u'Spektrum.de', u'http://www.spektrum.de/alias/rss/spektrum-de-rss-feed/996406'),
              (u'Spektrum der Wissenschaft', u'http://www.spektrum.de/alias/rss/spektrum-der-wissenschaft-rss-feed/982623'),
              (u'Gehirn & Geist', u'http://www.spektrum.de/alias/rss/gehirn-geist-rss-feed/982626'),
              (u'Epoc', u'http://www.spektrum.de/alias/rss/epoc-rss-feed/982625'),
              (u'Sterne und Weltraum', u'http://www.spektrum.de/alias/rss/sterne-und-weltraum-rss-feed/865248'),
              (u'Editional', u'http://www.spektrum.de/alias/rss/spektrum-de-editorial/996044'),
              (u'Pressemitteilungen', u'http://www.spektrum.de/alias/rss/pressemitteilungen/995265'),
             ]

    keep_only_tags = [
                        dict(name='div', attrs={'class':'border-h clearfix article-top'}),
                        dict(name='div', attrs={'class':'clearfix'}),
                        dict(name='div', attrs={'class':'bilderrahmenlinks'}),
                        dict(name='div', attrs={'class':'relcontainer'}),
                      ]

    remove_tags_after=dict(name='div', attrs={'class':['sidebar-box-head']})

    remove_tags = [
                    dict(attrs={'id':['recommend-article', 'dossierbox', 'cover', 'toc']}),
                    dict(attrs={'class':['sidebar-box-full clearfix', 'linktotop' ]}),
                  ]


Let me know, if something isn't working.
Attached Files
File Type: zip Spektrum_AGe_V6.zip (1.2 KB, 231 views)
Divingduck is offline   Reply With Quote
Old 02-25-2014, 02:54 AM   #4
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,161
Karma: 1404241
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
A new update due to some minor changes in article design.

Spoiler:
Code:
##
## Written:      October 2012 (new coding)
## Version:      7.0
## Last update:  2014-02-25
##

__license__   = 'GPL v3'
__copyright__ = ''
'''
Fetch RSS-Feeds spektrum.de
'''
from calibre.web.feeds.recipes import BasicNewsRecipe
class AdvancedUserRecipe1303841067(BasicNewsRecipe):
    title                 = u'Spektrum der Wissenschaft'
    __author__            = 'Armin Geller, Bratzzo, Rainer Zenz' # Update AGE 2014-02-25
    description           = u'German  online portal of Spektrum der Wissenschaft'
    publisher             = 'Spektrum der Wissenschaft Verlagsgesellschaft mbH'
    category              = 'science news, Germany'
    oldest_article        = 7
    max_articles_per_feed = 100
    no_stylesheets        = True
    remove_javascript     = True
    remove_empty_feeds    = True
    language              = 'de'

    #conversion_options    = {'base_font_size': 20}


    # Cover from Rainer Zenz
    cover_url             = 'http://www16.zippyshare.com/scaled/52219516/file.html' # AGE 2013-07-26 new cover location

    masthead_url          = 'http://www.spektrum.de/fm/861/spektrum.de.png'
    
    # AGE 2014-02-25 add .textbox-wide
    extra_css      =  '''
                      h1 {font-size: 1.6em; text-align: left}
                      h2 {font-size: 1em; font-style: italic; font-weight: normal}
                      h3 {font-size: 1.3em;text-align: left}
                      h4, h5, h6, .heading, .hgroup {font-size: 1em;text-align: left}
                      .textbox-wide {font-size: 1.3em; font-style: italic}
                      '''

    feeds = [
              (u'Spektrum.de', u'http://www.spektrum.de/alias/rss/spektrum-de-rss-feed/996406'),
              (u'Spektrum der Wissenschaft', u'http://www.spektrum.de/alias/rss/spektrum-der-wissenschaft-rss-feed/982623'),
              (u'Gehirn & Geist', u'http://www.spektrum.de/alias/rss/gehirn-geist-rss-feed/982626'),
              (u'Epoc', u'http://www.spektrum.de/alias/rss/epoc-rss-feed/982625'),
              (u'Sterne und Weltraum', u'http://www.spektrum.de/alias/rss/sterne-und-weltraum-rss-feed/865248'),
              (u'Editional', u'http://www.spektrum.de/alias/rss/spektrum-de-editorial/996044'),
              (u'Pressemitteilungen', u'http://www.spektrum.de/alias/rss/pressemitteilungen/995265'),
             ]

    keep_only_tags = [
                        dict(name='div', attrs={'class':'border-h clearfix article-top'}),
                        dict(name='div', attrs={'class':'clearfix'}),
                        dict(name='div', attrs={'class':'bilderrahmenlinks'}),
                        dict(name='div', attrs={'class':'relcontainer'}),
                      ]

    remove_tags_after=dict(name='div', attrs={'class':['sidebar-box-head']})

    remove_tags = [
                    dict(attrs={'id':['recommend-article', 'dossierbox', 'cover', 'toc']}),
                    dict(attrs={'class':['sidebar-box-full clearfix', 'linktotop' ]}),
                    dict(name='a', attrs={'class':'button-petrol'}), # AGE 2014-02-25
                    dict(name='hr', attrs={'class':['box-border left','box-border right']}), # AGE 2014-02-25
                  ]
Attached Files
File Type: rar Spektrum_AGe_V7.rar (1.2 KB, 157 views)
Divingduck is offline   Reply With Quote
Old 08-29-2014, 02:12 PM   #5
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,161
Karma: 1404241
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
A new update due to changes.
Attached Files
File Type: rar Spektrum_AGe_V7.rar (1.2 KB, 161 views)
Divingduck is offline   Reply With Quote
Old 08-29-2014, 02:46 PM   #6
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,161
Karma: 1404241
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Sorry, I attached the wrong file.
Attached Files
File Type: zip Spektrum_AGe_V8.zip (1.2 KB, 187 views)
Divingduck is offline   Reply With Quote
Old 03-12-2015, 03:15 PM   #7
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,161
Karma: 1404241
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Please find attached a new update for this recipe

Spoiler:
Code:
##
## Written:      October 2012 (new coding)
## Version:      9.0
## Last update:  2015-03-12
##

__license__   = 'GPL v3'
__copyright__ = ''
'''
Fetch RSS-Feeds spektrum.de
'''
from calibre.web.feeds.recipes import BasicNewsRecipe
class AdvancedUserRecipe1303841067(BasicNewsRecipe):
    title                 = u'Spektrum der Wissenschaft'
    __author__            = 'Armin Geller, Bratzzo, Rainer Zenz' # Update AGE 2014-02-25
    description           = u'German  online portal of Spektrum der Wissenschaft'
    publisher             = 'Spektrum der Wissenschaft Verlagsgesellschaft mbH'
    category              = 'science news, Germany'
    oldest_article        = 7
    max_articles_per_feed = 100
    no_stylesheets        = True
    remove_javascript     = True
    remove_empty_feeds    = True
    language              = 'de'
    encoding              = 'utf8' # AGe 2015-03-13 new, old encoding'cp1252'
#    recursions						= 0 # AGe 2014-08-21 new
    #conversion_options    = {'base_font_size': 20}


    # Cover from Rainer Zenz
    cover_url             = 'http://www58.zippyshare.com/scaled/VISHzqJj/file.html' # AGE 2015-03-12 new cover location
    masthead_url          = 'http://www.spektrum.de/fm/861/spektrum.de.png'
    
    # AGE 2014-02-25 add .textbox-wide
    extra_css      =  '''
                      h1 {font-size: 1.6em; text-align: left}
                      h2 {font-size: 1em; font-style: italic; font-weight: normal}
                      h3 {font-size: 1.3em;text-align: left}
                      h4, h5, h6, .heading, .hgroup {font-size: 1em;text-align: left}
                      .textbox-wide {font-size: 1.3em; font-style: italic}
                      '''

    feeds = [
              (u'Spektrum.de', u'http://www.spektrum.de/alias/rss/spektrum-de-rss-feed/996406'),
              (u'Spektrum der Wissenschaft', u'http://www.spektrum.de/alias/rss/spektrum-der-wissenschaft-rss-feed/982623'),
              (u'Gehirn & Geist', u'http://www.spektrum.de/alias/rss/gehirn-geist-rss-feed/982626'),
              (u'Sterne und Weltraum', u'http://www.spektrum.de/alias/rss/sterne-und-weltraum-rss-feed/865248'),
              (u'Pressemitteilungen', u'http://www.spektrum.de/alias/rss/pressemitteilungen/995265'), # AGe 2014-08-21 available but empty
							(u'Meistgelesene Artikel',u'http://www.spektrum.de/alias/rss/spektrum-de-meistgelesene-artikel/1224665'), # AGe 2014-08-21 new

             ]

    keep_only_tags = [
                        dict(name='div', attrs={'class':'border-h clearfix article-top relcontainer'}),
                        dict(name='article', attrs={'class':'clearfix'}),
                      ]

    remove_tags = [
                    dict(name='aside', attrs={'class':['bilderrahmenlinks','bilderrahmenrechts']}), # AGE 2014-08-29
                    dict(name='div', attrs={'class':'textbox-wide clearfix'}), # AGE 2014-08-29
                    dict(name='span', attrs={'class':['no-display','sprite-a sprite-lupe']}), # AGe 2015-03-13
                  ]
Attached Files
File Type: zip Spektrum_AGe_V9.zip (1.3 KB, 158 views)
Divingduck is offline   Reply With Quote
Reply

Tags
recipe, spektrum (de)


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Broken links in News "Germany > Spektrum (der Wissenschaft) eLit Recipes 5 07-26-2011 12:57 PM
Umfrage: Erwartungen/Auswirkungen UrhR in Bildung und Wissenschaft beachwanderer Deutsches Forum 0 07-25-2011 08:18 AM
recipe for Spektrum (der Wissenschaft) - german schuster Recipes 0 05-14-2011 12:57 PM
Philosophy Cues, Nicolaus von: Von der Wissenschaft des Nichtwissens German V 1.0, 31 Jan 2010 weatherwax ePub Books 0 01-31-2010 04:55 AM
Philosophy Nietzsche, Friedrich: Die fröhliche Wissenschaft. v1 23 may 2009 german stahanovez Kindle Books 1 05-23-2009 02:47 PM


All times are GMT -4. The time now is 01:31 AM.


MobileRead.com is a privately owned, operated and funded community.