From 3a1ac65f0b3e4716e434cf0825dc54735d57f61d Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Sat, 8 Nov 2014 15:52:49 +0100 Subject: [PATCH] Add The Daily WTF recipe --- recipes/thedailywtf.recipe | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 recipes/thedailywtf.recipe diff --git a/recipes/thedailywtf.recipe b/recipes/thedailywtf.recipe new file mode 100644 index 0000000000..cd765ea5ad --- /dev/null +++ b/recipes/thedailywtf.recipe @@ -0,0 +1,23 @@ +__license__ = 'GPL v3' +__copyright__ = 'Jelle van der Waa ' + +from calibre.web.feeds.news import BasicNewsRecipe + +class TheDailyWTF(BasicNewsRecipe): + + title = u'The Daily WTF' + publisher = u'Mark Bowytz' + __author__ = 'Jelle van der Waa' + description = 'The Daily WTF is your how-not-to guide for developing software. We recount tales of disastrous development, from project management gone spectacularly bad to inexplicable coding choices.' + category = 'software, programming' + cover_url = 'http://thedailywtf.com/content/images/wtf-logo.png' + oldest_article = 7 + max_articles_per_feed = 100 + remove_javascript = True + no_stylesheets = True + use_embedded_content = False + language = 'en' + remove_empty_feeds = True + keep_only_tags = [dict(name = 'h1'), + dict(name='div', attrs={'class':['article-body']})] + feeds = [(u'The Daily WTF', u'http://syndication.thedailywtf.com/TheDailyWtf')]