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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-17-2011, 06:47 AM   #1
Bobus
Junior Member
Bobus began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jan 2011
Device: Kindle
kath.net

Hello,

a recipe for kath.net:

Code:
class AdvancedUserRecipe1295262156(BasicNewsRecipe):
    title          = u'kath.net'
    oldest_article = 7
    max_articles_per_feed = 100

    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;}'
Bobus is offline   Reply With Quote
Old 03-09-2013, 07:04 AM   #2
msel
Junior Member
msel began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Sep 2010
Device: Sony
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
Old 03-20-2013, 04:02 AM   #3
msel
Junior Member
msel began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Sep 2010
Device: Sony
Hello,

the kath.net site has a rebuild, so the recipe need to be update:

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;}'
msel is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FanFictionDownloader.net rxmom03 Calibre 2 01-04-2011 12:03 AM
Manybooks.net down? Robotech_Master Deals, Freebies, and Resources (No Self-Promotion) 12 10-23-2008 03:09 PM
Manybooks.net Colin Dunstan Deals, Freebies, and Resources (No Self-Promotion) 8 01-29-2005 01:51 PM
MobileRSS.net Colin Dunstan Lounge 1 06-17-2004 12:38 PM


All times are GMT -4. The time now is 10:23 PM.


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