Register Guidelines E-Books Search Today's Posts Mark Forums Read

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


Thread Tools Search this Thread
Old 08-16-2011, 12:09 PM   #1
Junior Member
mzimmer began at the beginning.
Posts: 1
Karma: 10
Join Date: Aug 2011
Location: Potsdam, Germany
Device: Onyx Boox M90
Request: PNN recipe similar to Der Tagesspiegel

I'm using the recipe Der Tagespiegel. The PNN is associated to this newspaper so I tried just to exchange the URL but it failed.

Using a simple recipe with just the RSS gives very poor output without pictures.

PNN links are:
mzimmer is offline   Reply With Quote
Old 02-17-2013, 11:34 AM   #2
Junior Member
renderke began at the beginning.
Posts: 1
Karma: 10
Join Date: Feb 2013
Device: Sony PRS-T1
PNN recipe

Die Tagesspiegel-seite ist doch noch leicht anders, z.B. ist auf der PNN-Seite die "Drucken"-Seite gar nicht zu gebrauchen. Mit dem folgenden Code geht es, Ergänzungen willkommen!
from import BasicNewsRecipe

'''Calibre recipe to convert the RSS feeds of the PNN to an ebook.'''

class SportsIllustratedRecipe(BasicNewsRecipe) :
    __author__    = 'n.kucklaender'
    __copyright__ = 'a.peter'
    __license__   = 'GPL v3'
    language      = 'de'
    description   = 'PNN RSS'
    version       = 1
    title         = u'PNN'
    timefmt       = ' [%d.%m.%Y]'

    oldest_article = 7.0
    no_stylesheets = True
    remove_javascript = True
    use_embedded_content = False
    publication_type = 'newspaper'

    remove_empty_feeds = True
    remove_tags = [dict(attrs={'class':['um-weather um-header-weather','um-has-sub um-mainnav','um-box','ts-products','um-meta-nav','um-box um-last','um-footer','um-footer-links','share hidden','um-buttons']}),dict(id=['dinsContainer'])]
   # remove_tags_before = [dict(name='div', attrs={'class':'um-first'})]
   # remove_tags_after = [dict(name='div', attrs={'class':'um-metabar'})]

    feeds = [(u'Titelseite', u''),
 	         (u'Dritte Seite', u''),
 	         (u'Politik', u''),
 	         (u'Meinung', u''),
             (u'Potsdam', u''),
             (u'Havel-Spree', u''),
             (u'Potsdam-Mittelmark', u''),
             (u'Berlin-Brandenburg', u''),
 	         (u'Wirtschaft', u''),
             (u'Sport', u''),
             (u'Regionalsport', u''),
 	         (u'Kultur', u''),
             (u'Potsdam-Kultur', u''),
             (u'Wissen', u''), 
	         (u'Medien', u''), 
             (u'Weltspiegel', u''),  
             (u'Wissenschaft', u''), 
             (u'Mobil', u''), 
             (u'Reise', u''), 
             (u'Ratgeber', u''),          
             (u'Fragen des Tages', u''),
           # (u'Potsdam bin ich', u''),
             (u'Leserbriefe', u'')]

    def get_masthead_url(self):
        return ''

    def print_version(self, url):
        return url.replace('.html', ',view,printVersion.html')
renderke is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Request for recipe sumper Recipes 2 10-11-2010 03:25 AM
recipe to pull web page similar to 'print/save as pdf' JPD Recipes 15 09-29-2010 10:20 AM
Request for recipe exdream Calibre 3 04-24-2010 11:13 AM
"Der Tagesspiegel" (Berlin) über E-Books cubisticus Deutsches Forum 2 01-10-2009 04:43 PM
Request for Recipe ddavtian Calibre 2 11-24-2008 03:43 AM

All times are GMT -4. The time now is 12:35 PM. is a privately owned, operated and funded community.