From 5e2c978b28b280dd8b129eab46680d0697998fc8 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Sun, 26 Oct 2014 12:58:35 +0100 Subject: [PATCH] add krebs on security recipe --- recipes/krebs_on_security.recipe | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 recipes/krebs_on_security.recipe diff --git a/recipes/krebs_on_security.recipe b/recipes/krebs_on_security.recipe new file mode 100644 index 0000000000..0819ff714d --- /dev/null +++ b/recipes/krebs_on_security.recipe @@ -0,0 +1,29 @@ +__license__ = 'GPL v3' +__copyright__ = 'Jelle van der Waa ' + +from calibre.web.feeds.news import BasicNewsRecipe + +class KrebsOnSecurity(BasicNewsRecipe): + + title = u'Krebs on Security' + publisher = u'Brian Krebs' + __author__ = 'Jelle van der Waa' + description = 'In-depth Security news and investigation' + category = 'security, news' + cover_url = 'http://krebsonsecurity.com/wp-content/themes/krebsads/krebsads/images/header.jpg' + 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 = 'h2', attrs = {'class' : 'post-title'}), + dict(name='div', attrs={'class':['entry']})] + remove_tags = [dict(name='p', attrs={'class':['small', + 'mid-banner', + 'metadata alt', + 'postmetadata alt', + 'insider_continue']}), + dict(attrs={'alt':['pinterest', 'facebook', 'twitter', 'reddit','mail', 'linkedin', 'google_plus']})] + feeds = [(u'Krebs on security', u'http://feeds.feedburner.com/KrebsOnSecurity')]