| 1 |
__license__ = 'GPL v3' |
| 2 |
__copyright__ = '2010-2012, Darko Miletic <darko.miletic at gmail.com>' |
| 3 |
''' |
| 4 |
theeconomiccollapseblog.com |
| 5 |
''' |
| 6 |
|
| 7 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 8 |
|
| 9 |
|
| 10 |
class TheEconomicCollapse(BasicNewsRecipe): |
| 11 |
title = 'The Economic Collapse' |
| 12 |
__author__ = 'Darko Miletic' |
| 13 |
description = 'Are You Prepared For The Coming Economic Collapse And The Next Great Depression?' |
| 14 |
publisher = 'The Economic Collapse' |
| 15 |
category = 'news, politics, USA, economy' |
| 16 |
oldest_article = 7 |
| 17 |
max_articles_per_feed = 200 |
| 18 |
no_stylesheets = True |
| 19 |
encoding = 'utf8' |
| 20 |
use_embedded_content = False |
| 21 |
language = 'en' |
| 22 |
remove_empty_feeds = True |
| 23 |
extra_css = ''' |
| 24 |
body{font-family: Tahoma,Arial,sans-serif } |
| 25 |
img{margin-bottom: 0.4em; display: block;} |
| 26 |
''' |
| 27 |
|
| 28 |
conversion_options = {'comment': description, 'tags': category, 'publisher': publisher, 'language': language} |
| 29 |
|
| 30 |
remove_tags = [dict(attrs={'class': 'sociable'}), dict(name=['iframe', 'object', 'embed', 'meta', 'link', 'base'])] |
| 31 |
remove_attributes = ['lang', 'onclick', 'width', 'height'] |
| 32 |
keep_only_tags = [dict(name='div', attrs={'class': 'post-headline'}), dict(name='div', attrs={'class': lambda x: x and 'post-bodycopy' in x.split()})] |
| 33 |
|
| 34 |
feeds = [('Posts', 'http://theeconomiccollapseblog.com/feed')] |