View Single Post
Old 01-07-2009, 05:44 AM   #110
sn123py
Member
sn123py began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jan 2009
Device: Sony PRS-T1, Kindle4NT
German Heise Telepolis

Hi,
i'm trying to create an recipe for german heise telepolis. I use this recipe:
Code:
#!/usr/bin/env  python
__license__   = 'GPL v3'
__copyright__ = '2008, Friedhelm Buescher'
'''
www.heise.de/tp/
'''

from calibre.web.feeds.news import BasicNewsRecipe

class HeiseTelepolis(BasicNewsRecipe):
    title                 = u'heise-tp'
    __author__            = 'Friedhelm Buescher'
    description           = 'Heise Telepolis'    
    oldest_article        = 7
    max_articles_per_feed = 50
    no_stylesheets        = False
    use_embedded_content  = False

    keep_only_tags = [
                        dict(name='table'  , attrs={'class':'blogtable' }),
                        dict(id='HEISETEXT')
                     ]

    feeds          = [
                        (u'tp', u'http://www.heise.de/tp/news-atom.xml')
                     ]

    def print_version(self, url):
        return url + '?printable=true'
it works for the blogged entries (the ones with an colored icon in front), but it does not work for the original heise news ( for example: Die "Moral" von der Geschichte). my approach was, that all original heise news are between <HEISETEXT> and </HEISETEXT> ..
can someone help, please?

regards,
Friedhelm.
sn123py is offline