New recipes for The Old Foodie and HLN Belgium by Darko Miletic

This commit is contained in:
Kovid Goyal 2009-09-01 10:44:21 -06:00
parent ec16cc89f4
commit 0586ab7b7a
4 changed files with 65 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 B

View File

@ -56,7 +56,7 @@ recipe_modules = ['recipe_' + r for r in (
'volksrant', 'theeconomictimes_india', 'ourdailybread',
'monitor', 'republika', 'beta', 'beta_en', 'glasjavnosti',
'esquire', 'livemint', 'thedgesingapore', 'darknet', 'rga',
'intelligencer',
'intelligencer', 'theoldfoodie', 'hln_be',
)]

View File

@ -0,0 +1,35 @@
#!/usr/bin/env python
__license__ = 'GPL v3'
__copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
'''
www.hln.be
'''
from calibre.web.feeds.news import BasicNewsRecipe
class HLN_be(BasicNewsRecipe):
title = 'HLN Belgium'
__author__ = 'Darko Miletic'
description = 'Belgium news'
publisher = 'HLN'
category = 'news, politics, Belgium'
oldest_article = 2
max_articles_per_feed = 100
use_embedded_content = False
no_stylesheets = True
encoding = 'utf-8'
language = _('Dutch')
conversion_options = {
'comments' : description
,'tags' : category
,'language' : 'nl-NL'
,'publisher' : publisher
}
remove_tags = [dict(name=['form','object','embed'])]
keep_only_tags = [dict(name='div', attrs={'id':'art_box2'})]
feeds = [(u'Articles', u'http://www.hln.be/rss.xml')]

View File

@ -0,0 +1,29 @@
#!/usr/bin/env python
__license__ = 'GPL v3'
__copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
'''
www.theoldfoodie.com
'''
from calibre.web.feeds.news import BasicNewsRecipe
class TheOldFoodie(BasicNewsRecipe):
title = 'The Old Foodie'
__author__ = 'Darko Miletic'
description = 'Food blog'
category = 'cuisine, food, blog'
oldest_article = 30
max_articles_per_feed = 100
use_embedded_content = True
no_stylesheets = True
encoding = 'utf-8'
language = _('English')
conversion_options = {
'comments' : description
,'tags' : category
,'language' : 'en'
}
feeds = [(u'Articles', u'http://www.theoldfoodie.com/feeds/posts/default?alt=rss')]