mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
New recipes for The Old Foodie and HLN Belgium by Darko Miletic
This commit is contained in:
parent
ec16cc89f4
commit
0586ab7b7a
BIN
src/calibre/gui2/images/news/hln_be.png
Normal file
BIN
src/calibre/gui2/images/news/hln_be.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 359 B |
@ -56,7 +56,7 @@ recipe_modules = ['recipe_' + r for r in (
|
|||||||
'volksrant', 'theeconomictimes_india', 'ourdailybread',
|
'volksrant', 'theeconomictimes_india', 'ourdailybread',
|
||||||
'monitor', 'republika', 'beta', 'beta_en', 'glasjavnosti',
|
'monitor', 'republika', 'beta', 'beta_en', 'glasjavnosti',
|
||||||
'esquire', 'livemint', 'thedgesingapore', 'darknet', 'rga',
|
'esquire', 'livemint', 'thedgesingapore', 'darknet', 'rga',
|
||||||
'intelligencer',
|
'intelligencer', 'theoldfoodie', 'hln_be',
|
||||||
)]
|
)]
|
||||||
|
|
||||||
|
|
||||||
|
35
src/calibre/web/feeds/recipes/recipe_hln_be.py
Normal file
35
src/calibre/web/feeds/recipes/recipe_hln_be.py
Normal 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')]
|
29
src/calibre/web/feeds/recipes/recipe_theoldfoodie.py
Normal file
29
src/calibre/web/feeds/recipes/recipe_theoldfoodie.py
Normal 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')]
|
Loading…
x
Reference in New Issue
Block a user