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.