diff --git a/src/calibre/gui2/images/news/hln_be.png b/src/calibre/gui2/images/news/hln_be.png new file mode 100644 index 0000000000..0cddf06420 Binary files /dev/null and b/src/calibre/gui2/images/news/hln_be.png differ diff --git a/src/calibre/web/feeds/recipes/__init__.py b/src/calibre/web/feeds/recipes/__init__.py index 3979d542ed..613f5ba2bb 100644 --- a/src/calibre/web/feeds/recipes/__init__.py +++ b/src/calibre/web/feeds/recipes/__init__.py @@ -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', )] diff --git a/src/calibre/web/feeds/recipes/recipe_hln_be.py b/src/calibre/web/feeds/recipes/recipe_hln_be.py new file mode 100644 index 0000000000..9ba04585e2 --- /dev/null +++ b/src/calibre/web/feeds/recipes/recipe_hln_be.py @@ -0,0 +1,35 @@ +#!/usr/bin/env python + +__license__ = 'GPL v3' +__copyright__ = '2009, Darko Miletic ' +''' +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')] diff --git a/src/calibre/web/feeds/recipes/recipe_theoldfoodie.py b/src/calibre/web/feeds/recipes/recipe_theoldfoodie.py new file mode 100644 index 0000000000..dacff26c15 --- /dev/null +++ b/src/calibre/web/feeds/recipes/recipe_theoldfoodie.py @@ -0,0 +1,29 @@ +#!/usr/bin/env python + +__license__ = 'GPL v3' +__copyright__ = '2009, Darko Miletic ' +''' +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')]