mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
George Monbiot by DM
This commit is contained in:
parent
48214035de
commit
2216b43203
43
recipes/monbiot.recipe
Normal file
43
recipes/monbiot.recipe
Normal file
@ -0,0 +1,43 @@
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2012, Darko Miletic <darko.miletic at gmail.com>'
|
||||
'''
|
||||
www.monbiot.com
|
||||
'''
|
||||
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
class GeorgeMonbiot(BasicNewsRecipe):
|
||||
title = 'George Monbiot - blog'
|
||||
__author__ = 'Darko Miletic'
|
||||
description = 'Tell people something they know already and they will thank you for it. Tell people something new and they will hate you for it.'
|
||||
publisher = 'George Monbiot'
|
||||
category = 'news, politics, UK, World'
|
||||
oldest_article = 15
|
||||
max_articles_per_feed = 200
|
||||
no_stylesheets = True
|
||||
encoding = 'utf8'
|
||||
use_embedded_content = False
|
||||
language = 'en_GB'
|
||||
remove_empty_feeds = True
|
||||
publication_type = 'blog'
|
||||
extra_css = """
|
||||
body{font-family: Arial,Helvetica,sans-serif }
|
||||
img{margin-bottom: 0.4em; display:block}
|
||||
"""
|
||||
|
||||
conversion_options = {
|
||||
'comment' : description
|
||||
, 'tags' : category
|
||||
, 'publisher' : publisher
|
||||
, 'language' : language
|
||||
}
|
||||
|
||||
remove_tags = [
|
||||
dict(name=['meta','link']),
|
||||
dict(attrs={'class':'shareinpost'}),
|
||||
dict(attrs={'id':'paging'})
|
||||
]
|
||||
remove_attributes=['lang']
|
||||
keep_only_tags=[dict(attrs={'id':'content'})]
|
||||
|
||||
feeds = [(u'Articles', u'http://www.monbiot.com/feed/atom/')]
|
Loading…
x
Reference in New Issue
Block a user