|
|
#1 |
|
Junior Member
![]() 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'<font size="-2">([(][0-9]*[)])</font>'), 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
|
|
|
|
![]() |
|
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 05:57 AM |
| Recipe Please | gagw | Recipes | 0 | 01-24-2011 08:24 AM |
| I need some help with a recipe | jefferson_frantz | Recipes | 14 | 11-22-2010 03:06 PM |
| New recipe | kiklop74 | Recipes | 0 | 10-05-2010 05:41 PM |
| Recipe Help | hellonewman | Calibre | 1 | 01-23-2010 04:45 AM |