From c31284d713eab033f37a33fe548b37986a7ffb26 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 21 Jan 2015 08:42:05 +0530 Subject: [PATCH] Update Jot Down --- recipes/jot_down.recipe | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/recipes/jot_down.recipe b/recipes/jot_down.recipe index ac5a0b7010..a0df9739d4 100644 --- a/recipes/jot_down.recipe +++ b/recipes/jot_down.recipe @@ -5,8 +5,8 @@ __license__ = 'GPL v3' __copyright__ = '23 June 2013, desUBIKado' __author__ = 'desUBIKado' __description__ = 'Contemporary Culture Magazine' -__version__ = 'v0.01' -__date__ = '23, June 2013' +__version__ = 'v0.02' +__date__ = '20, January 2015' ''' http://www.jotdown.es/ ''' @@ -34,27 +34,25 @@ class jotdown(BasicNewsRecipe): (u'Portada', u'http://www.jotdown.es/feed/') ] - keep_only_tags = [dict(name='div', attrs={'class':['single']}), + keep_only_tags = [dict(name='div', attrs={'id':['content']}), dict(name='div', attrs={'id':['comments']}), ] remove_tags = [dict(name='a', attrs={'href':['http://alternativaseconomicas.coop/']}), - dict(name='div', attrs={'class':['reply','after-meta','comment-author vcard']}), + dict(name='div', attrs={'class':['reply','after-meta','tags_list','wp_rp_wrap wp_rp_plain','after-meta','share_box']}), dict(name='div', attrs={'align':['center']}), - dict(name='span', attrs={'class':['fbreplace']}), + dict(name='span', attrs={'class':['fbreplace','says']}), + dict(name='img', attrs={'class':['avatar avatar-60 photo']}), + dict(name='li', attrs={'class':['post pingback']}), dict(name='div', attrs={'id':'respond'}) - ] + ] remove_tags_after = dict(name='div' , attrs={'id':'respond'}) - extra_css = ''' - .comment-list {font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:12px;} - ''' - preprocess_regexps = [ # To present the image of the embedded video - (re.compile(r'', re.DOTALL|re.IGNORECASE), lambda match: '
'), (re.compile(r' —', re.DOTALL|re.IGNORECASE), lambda match: ''), # To remove the link of the title - (re.compile(r'

', re.DOTALL|re.IGNORECASE), lambda match: '
') + (re.compile(r'