Thread: kath.net
View Single Post
Old 03-09-2013, 07:04 AM   #2
msel
Connoisseur
msel is at one with the great books of the world.msel is at one with the great books of the world.msel is at one with the great books of the world.msel is at one with the great books of the world.msel is at one with the great books of the world.msel is at one with the great books of the world.msel is at one with the great books of the world.msel is at one with the great books of the world.msel is at one with the great books of the world.msel is at one with the great books of the world.msel is at one with the great books of the world.
 
msel's Avatar
 
Posts: 74
Karma: 143132
Join Date: Sep 2010
Device: Kindle Keyboard 3G
Hello,

i've modified the recipe of kath.net because there were some encodings problems.

Code:
from calibre.web.feeds.news import BasicNewsRecipe

class AdvancedUserRecipe1295262156(BasicNewsRecipe):
    title          = u'kath.net'
    __author__     = 'Bobus'
    description    = u'Katholische Nachrichten'
    oldest_article = 7
    language = 'de'
    max_articles_per_feed = 100
    no_stylesheets = True
    auto_cleanup = True
    encoding='iso-8859-1'


    feeds          = [(u'kath.net', u'http://www.kath.net/2005/xml/index.xml')]


    def print_version(self, url):
        return url+"&print=yes"

extra_css = 'td.textb {font-size: medium;}'
Greetings Maria
msel is offline   Reply With Quote