3
__copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
8
from calibre.web.feeds.news import BasicNewsRecipe
10
class Reptantes(BasicNewsRecipe):
12
__author__ = 'Darko Miletic'
13
description = u"cada vez que te haces acupuntura, tu muñeco vudú sufre en algún lado"
15
max_articles_per_feed = 100
19
use_embedded_content = False
20
publication_type = 'blog'
21
extra_css = ' body{font-family: "Palatino Linotype",serif} h2{text-align: center; color:#BE7F8D} img{margin-bottom: 2em} '
23
conversion_options = {
24
'comment' : description
25
, 'tags' : 'literatura'
26
, 'publisher': 'Hernan Racnati'
27
, 'language' : language
30
feeds = [(u'Posts', u'http://www.reptantes.com.ar/?feed=rss2')]
32
keep_only_tags = [dict(attrs={'id':'content'})]
33
remove_tags = [dict(attrs={'class':'iLikeThis'})]
34
remove_tags_before = dict(name='h2')
35
remove_tags_after = dict(attrs={'class':'iLikeThis'})
38
def preprocess_html(self, soup):
39
for item in soup.findAll(style=True):
41
return self.adeify_images(soup)