# -*- coding: utf-8 -*- __license__ = 'GPL v3' __author__ = 'Luis Hernandez' __copyright__ = 'Luis Hernandez' description = 'Diario independiente de Asturias - v1.0 - 27 Jan 2011' ''' www.lne.es ''' from calibre.web.feeds.news import BasicNewsRecipe class AdvancedUserRecipe1294946868(BasicNewsRecipe): title = 'La Nueva EspaƱa' publisher = 'Editorial Prensa Iberica' __author__ = 'Luis Hernandez' description = 'Diario independiente de Asturias' cover_url = 'http://estaticos00.lne.es//elementosWeb/mediaweb/images/iconos/logo2.jpg' oldest_article = 3 max_articles_per_feed = 100 remove_javascript = True no_stylesheets = True use_embedded_content = False encoding = 'ISO-8859-1' language = 'es' timefmt = '[%a, %d %b, %Y]' keep_only_tags = [ dict(name='div', attrs={'class': ['noticia_titular', 'subtitulo', 'noticiadd2', 'noticia_texto']}), dict(name='div', attrs={'id': ['noticia_texto']}), ] extra_css = ' p{text-align: justify; font-size: 100%} body{ text-align: left; font-family: serif; font-size: 100% } h1{ font-family: sans-serif; font-size:150%; font-weight: 600; text-align: justify; } h2{ font-family: sans-serif; font-size:120%; font-weight: 500; text-align: justify } ' # noqa: E501 remove_tags_before = dict(name='div', attrs={'class': ['contenedor']}) remove_tags_after = dict(name='div', attrs={'class': ['fin_noticia']}) remove_tags = [ dict( name='div', attrs={ 'class': [ 'epigrafe', 'antetitulo', 'bloqueclear', 'bloqueclear_video', 'cuadro_multimedia', 'cintillo2', 'editor_documentos', 'noticiadd', 'noticiadd3', 'noticiainterior', 'fin_noticia', ] }, ), dict(name='div', attrs={'id': ['evotos']}), # noqa: E501 ] feeds = [ ('Al minuto', 'http://www.lne.es/elementosInt/rss/AlMinuto'), ('General', 'http://www.lne.es/elementosInt/rss/55'), ('Nacional', 'http://www.lne.es/elementosInt/rss/43'), ('Internacional', 'http://www.lne.es/elementosInt/rss/44'), ('Economia', 'http://www.lne.es/elementosInt/rss/45'), ('Deportes', 'http://www.lne.es/elementosInt/rss/47'), ('Campeones', 'http://www.lne.es/elementosInt/rss/65'), ('Sociedad', 'http://www.lne.es/elementosInt/rss/46'), ('Sucesos', 'http://www.lne.es/elementosInt/rss/48'), ('Galeria', 'http://www.lne.es/elementosInt/rss/51'), ('Cultura', 'http://www.lne.es/elementosInt/rss/66'), ('Motor', 'http://www.lne.es/elementosInt/rss/62'), ('Opinion', 'http://www.lne.es/elementosInt/rss/52'), ('Asturias', 'http://www.lne.es/elementosInt/rss/42'), ('Oviedo', 'http://www.lne.es/elementosInt/rss/31'), ('Gijon', 'http://www.lne.es/elementosInt/rss/35'), ('Aviles', 'http://www.lne.es/elementosInt/rss/36'), ('Nalon', 'http://www.lne.es/elementosInt/rss/37'), ('Cuencas', 'http://www.lne.es/elementosInt/rss/38'), ('Caudal', 'http://www.lne.es/elementosInt/rss/39'), ('Oriente', 'http://www.lne.es/elementosInt/rss/40'), ('Occidente', 'http://www.lne.es/elementosInt/rss/41'), ('Mar y Campo', 'http://www.lne.es/elementosInt/rss/63'), ('Ultima', 'http://www.lne.es/elementosInt/rss/50'), ]