mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Update Naked Capitalism
Merge branch 'master' of https://github.com/CoderAllan/calibre
This commit is contained in:
commit
e7769ecda0
@ -1,12 +1,11 @@
|
|||||||
#!/usr/bin/env python2
|
#!/usr/bin/env python2
|
||||||
|
|
||||||
__license__ = 'GPL v3'
|
__license__ = 'GPL v3'
|
||||||
__copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
|
__copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
|
||||||
'''
|
'''
|
||||||
www.nakedcapitalism.com
|
www.nakedcapitalism.com
|
||||||
'''
|
'''
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
|
||||||
|
|
||||||
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
class nakedcapitalism(BasicNewsRecipe):
|
class nakedcapitalism(BasicNewsRecipe):
|
||||||
title = 'Naked Capitalism'
|
title = 'Naked Capitalism'
|
||||||
@ -20,17 +19,25 @@ class nakedcapitalism(BasicNewsRecipe):
|
|||||||
use_embedded_content = False
|
use_embedded_content = False
|
||||||
encoding = 'utf-8'
|
encoding = 'utf-8'
|
||||||
language = 'en'
|
language = 'en'
|
||||||
extra_css = ' #BlogTitle{font-size: x-large; font-weight: bold} #BlogDate{font-size: small} '
|
extra_css = (' #BlogTitle{font-size: x-large; font-weight: bold}'
|
||||||
|
' #BlogDate{font-size: small} ')
|
||||||
|
auto_claenup = False
|
||||||
|
|
||||||
conversion_options = {
|
conversion_options = {
|
||||||
'comment': description, 'tags': category, 'publisher': publisher, 'language': language
|
'comment': description,
|
||||||
|
'tags': category,
|
||||||
|
'publisher': publisher,
|
||||||
|
'language': language
|
||||||
}
|
}
|
||||||
|
|
||||||
feeds = [(u'Articles', u'http://www.nakedcapitalism.com/feed')]
|
feeds = [
|
||||||
|
(u'Articles', u'http://www.nakedcapitalism.com/feed'),
|
||||||
|
(u'Comments', u'http://www.nakedcapitalism.com/comments/feed'),
|
||||||
|
]
|
||||||
|
|
||||||
keep_only_tags = [
|
keep_only_tags = [
|
||||||
dict(name='h3', attrs={'class': 'post-title entry-title'}
|
dict(name='header', attrs={'class': 'entry-header'}),
|
||||||
), dict(name='div', attrs={'class': 'entry'})
|
dict(name='div', attrs={'class': 'pf-content'})
|
||||||
]
|
]
|
||||||
|
|
||||||
remove_tags = [dict(name=['object', 'link', 'base'])]
|
remove_tags = [dict(name=['object', 'link', 'base'])]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user