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 03-17-2011, 09:15 AM   #1
Bobus
Junior Member
Bobus began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jan 2011
Device: Kindle
EvangleliumTagfuerTag.de recipe

Hello,

here my recipe for EvangleliumTagfuerTag (Evangelizo.org).
I think it's easy to get also other languages, example: for the french version change 'de' in 'fr' in the feedaddress.

Code:
import re

class Evangelizo(BasicNewsRecipe):
    title   = 'Evangelizo.org'
    oldest_article         = 2
    max_articles_per_feed  = 30
    language               = 'de_DE'
    feeds                  = [
        ('EvangleliumTagfuerTag', 'http://www.evangeliumtagfuertag.org/rss/evangelizo_rss-de.xml'),
        ]
    use_embedded_content   = True
    preprocess_regexps     = [
        (re.compile(r'&lt;font size="-2"&gt;([(][0-9]*[)])&lt;/font&gt;'), r'\g<1>'),
        (re.compile(r'([\.!]\n)'), r'\g<1><br />'),
    ]

    def populate_article_metadata(self, article, soup, first):
       article.title = re.sub(r'<font size="-2">([(][0-9]*[)])</font>', r'\g<1>', article.title)
       return
Bobus 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
Recipe works when mocked up as Python file, fails when converted to Recipe ode Recipes 7 09-04-2011 04:57 AM
Recipe Please gagw Recipes 0 01-24-2011 07:24 AM
I need some help with a recipe jefferson_frantz Recipes 14 11-22-2010 02:06 PM
New recipe kiklop74 Recipes 0 10-05-2010 04:41 PM
Recipe Help hellonewman Calibre 1 01-23-2010 03:45 AM


All times are GMT -4. The time now is 09:08 PM.


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