mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Red Voltaire by atordo
This commit is contained in:
parent
6b69085a39
commit
f68b22881a
32
recipes/red_voltaire.recipe
Normal file
32
recipes/red_voltaire.recipe
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
import re
|
||||||
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
class RedVoltaireRecipe(BasicNewsRecipe):
|
||||||
|
title = u'Red Voltaire'
|
||||||
|
__author__ = 'atordo'
|
||||||
|
description = u'Red de prensa no alineada, especializada en el an\u00e1lisis de las relaciones internacionales'
|
||||||
|
oldest_article = 7
|
||||||
|
max_articles_per_feed = 30
|
||||||
|
auto_cleanup = False
|
||||||
|
no_stylesheets = True
|
||||||
|
language = 'es'
|
||||||
|
use_embedded_content = False
|
||||||
|
remove_javascript = True
|
||||||
|
cover_url = u'http://www.voltairenet.org/squelettes/elements/images/logo-voltairenet-org.png'
|
||||||
|
masthead_url = u'http://www.voltairenet.org/squelettes/elements/images/logo-voltairenet-org.png'
|
||||||
|
|
||||||
|
preprocess_regexps = [
|
||||||
|
(re.compile(r'<title>(?P<titulo>.+)</title>.+<span class="updated" title=".+"><time', re.IGNORECASE|re.DOTALL)
|
||||||
|
,lambda match:'</title></head><body><h1>'+match.group('titulo')+'</h1><time')
|
||||||
|
,(re.compile(r'<time datetime=.+pubdate>. (?P<fecha>.+)</time>.+<!------------------- COLONNE TEXTE ------------------->', re.IGNORECASE|re.DOTALL)
|
||||||
|
,lambda match:'<small>'+match.group('fecha')+'</small>')
|
||||||
|
,(re.compile(r'<aside>.+', re.IGNORECASE|re.DOTALL)
|
||||||
|
,lambda match:'</body></html>')
|
||||||
|
]
|
||||||
|
|
||||||
|
extra_css = '''
|
||||||
|
img{margin-bottom:0.4em; display:block; margin-left:auto; margin-right:auto}
|
||||||
|
'''
|
||||||
|
|
||||||
|
feeds = [u'http://www.voltairenet.org/spip.php?page=backend&id_secteur=1110&lang=es']
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user