Debian Codegraph @

recipes/zerohedge.recipe

raw
1 # -*- mode: python; coding: utf-8; -*-
2 # vim: set syntax=python fileencoding=utf-8
3
4 __license__ = 'GPL v3'
5 __copyright__ = '2011-2020, Darko Miletic <darko.miletic at gmail.com>'
6 '''
7 www.zerohedge.com
8 '''
9
10 from calibre.web.feeds.recipes import BasicNewsRecipe
11
12
13 class ZeroHedge(BasicNewsRecipe):
14 title = 'Zero Hedge'
15 __author__ = 'Darko Miletic'
16 description = 'On a long enough timeline the survival rate for everyone drops to zero'
17 oldest_article = 10
18 max_articles_per_feed = 100
19 no_stylesheets = True
20 use_embedded_content = False
21 encoding = 'utf8'
22 publisher = 'zero hedge'
23 category = 'news, USA, world, economy, politics'
24 language = 'en'
25 masthead_url = 'https://www.zerohedge.com/images/logo/full.svg'
26 auto_cleanup = True
27 auto_cleanup_keep = '//*[@class="main-content"]'
28 publication_type = 'blog'
29 extra_css = 'body{ font-family: sans-serif }'
30
31 conversion_options = {'comments': description, 'tags': category, 'language': language, 'publisher': publisher}
32
33 feeds = [('Articles', 'http://feeds.feedburner.com/zerohedge/feed')]