Register Guidelines E-Books Today's Posts Search

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
Connoisseur
msel can grip it by the huskmsel can grip it by the huskmsel can grip it by the huskmsel can grip it by the huskmsel can grip it by the huskmsel can grip it by the huskmsel can grip it by the huskmsel can grip it by the huskmsel can grip it by the huskmsel can grip it by the huskmsel can grip it by the husk
 
msel's Avatar
 
Posts: 61
Karma: 141502
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
Old 03-20-2013, 04:02 AM   #3
msel
Connoisseur
msel can grip it by the huskmsel can grip it by the huskmsel can grip it by the huskmsel can grip it by the huskmsel can grip it by the huskmsel can grip it by the huskmsel can grip it by the huskmsel can grip it by the huskmsel can grip it by the huskmsel can grip it by the huskmsel can grip it by the husk
 
msel's Avatar
 
Posts: 61
Karma: 141502
Join Date: Sep 2010
Device: Kindle Keyboard 3G
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


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 and Resources (No Self-Promotion or Affiliate Links) 12 10-23-2008 03:09 PM
Manybooks.net Colin Dunstan Deals and Resources (No Self-Promotion or Affiliate Links) 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 09:39 AM.


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