mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/jelly/calibre
This commit is contained in:
commit
d9f8189057
29
recipes/krebs_on_security.recipe
Normal file
29
recipes/krebs_on_security.recipe
Normal file
@ -0,0 +1,29 @@
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = 'Jelle van der Waa <jelle@vdwaa.nl>'
|
||||
|
||||
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')]
|
Loading…
x
Reference in New Issue
Block a user