mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Delete Ansa.recipe
This commit is contained in:
parent
9077f5c8fb
commit
3642ca8cae
@ -1,73 +0,0 @@
|
|||||||
#!/usr/bin/env python2
|
|
||||||
__license__ = 'GPL v3'
|
|
||||||
__author__ = 'Gabriele Marini, based on Darko Miletic'
|
|
||||||
__copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
|
|
||||||
description = 'Italian daily newspaper - 01-05-2010'
|
|
||||||
'''
|
|
||||||
http://www.ansa.it/
|
|
||||||
'''
|
|
||||||
|
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
|
||||||
|
|
||||||
|
|
||||||
class Ansa(BasicNewsRecipe):
|
|
||||||
__author__ = 'Gabriele Marini'
|
|
||||||
description = 'Italian News Agency'
|
|
||||||
|
|
||||||
cover_url = 'http://www.ansa.it/web/images/logo_ansa_interna.gif'
|
|
||||||
title = u'Ansa'
|
|
||||||
publisher = 'Ansa'
|
|
||||||
category = 'News, politics, culture, economy, general interest'
|
|
||||||
|
|
||||||
language = 'it'
|
|
||||||
timefmt = '[%a, %d %b, %Y]'
|
|
||||||
|
|
||||||
oldest_article = 1
|
|
||||||
max_articles_per_feed = 10
|
|
||||||
use_embedded_content = False
|
|
||||||
recursion = 10
|
|
||||||
|
|
||||||
remove_javascript = True
|
|
||||||
no_stylesheets = True
|
|
||||||
conversion_options = {'linearize_tables': True}
|
|
||||||
remove_attributes = ['colspan']
|
|
||||||
|
|
||||||
keep_only_tags = [dict(name='div', attrs={'class': ['path', 'header-content', 'corpo']}),
|
|
||||||
]
|
|
||||||
|
|
||||||
remove_tags = [
|
|
||||||
dict(name='div', attrs={'class': 'tools-bar'}),
|
|
||||||
dict(name='div', attrs={'id': ['rssdiv', 'blocco']})
|
|
||||||
]
|
|
||||||
|
|
||||||
feeds = [
|
|
||||||
(u'HomePage', u'http://www.ansa.it/web/ansait_web_rss_homepage.xml'),
|
|
||||||
(u'Top New', u'http://www.ansa.it/web/notizie/rubriche/topnews/topnews_rss.xml'),
|
|
||||||
(u'Cronaca', u'http://www.ansa.it/web/notizie/rubriche/cronaca/cronaca_rss.xml'),
|
|
||||||
(u'Mondo', u'http://www.ansa.it/web/notizie/rubriche/mondo/mondo_rss.xml'),
|
|
||||||
(u'Economia', u'http://www.ansa.it/web/notizie/rubriche/economia/economia_rss.xml'),
|
|
||||||
(u'Politica', u'http://www.ansa.it/web/notizie/rubriche/politica/politica_rss.xml'),
|
|
||||||
(u'Scienze', u'http://www.ansa.it/web/notizie/rubriche/scienza/scienza_rss.xml'),
|
|
||||||
(u'Cinema', u'http://www.ansa.it/web/notizie/rubriche/cinema/cinema_rss.xml'),
|
|
||||||
(u'Tecnologia e Internet',
|
|
||||||
u'http://www.ansa.it/web/notizie/rubriche/tecnologia/tecnologia_rss.xml'),
|
|
||||||
(u'Spettacolo', u'http://www.ansa.it/web/notizie/rubriche/spettacolo/spettacolo_rss.xml'),
|
|
||||||
(u'Cultura e Tendenze',
|
|
||||||
u'http://www.ansa.it/web/notizie/rubriche/cultura/cultura_rss.xml'),
|
|
||||||
(u'Sport', u'http://www.ansa.it/web/notizie/rubriche/altrisport/altrisport_rss.xml'),
|
|
||||||
(u'Calcio', u'http://www.ansa.it/web/notizie/rubriche/calcio/calcio_rss.xml'),
|
|
||||||
(u'Lazio', u'http://www.ansa.it/web/notizie/regioni/lazio/lazio_rss.xml'),
|
|
||||||
(u'Lombardia', u'http://www.ansa.it/web/notizie/regioni/lombardia/lombardia.shtml'),
|
|
||||||
(u'Veneto', u'http://www.ansa.it/web/notizie/regioni/veneto/veneto.shtml'),
|
|
||||||
(u'Campanioa', u'http://www.ansa.it/web/notizie/regioni/campania/campania.shtml'),
|
|
||||||
(u'Sicilia', u'http://www.ansa.it/web/notizie/regioni/sicilia/sicilia.shtml'),
|
|
||||||
(u'Toscana', u'http://www.ansa.it/web/notizie/regioni/toscana/toscana.shtml'),
|
|
||||||
(u'Trentino', u'http://www.ansa.it/web/notizie/regioni/trentino/trentino.shtml')
|
|
||||||
]
|
|
||||||
|
|
||||||
extra_css = '''
|
|
||||||
.path{font-style: italic; font-size: small}
|
|
||||||
.header-content h1{font-weight: bold; font-size: xx-large}
|
|
||||||
.header-content h2{font-weight: bold; font-size: x-large; font-syle: italic}
|
|
||||||
.content-corpo{font-size: 14px;font-family: Times New Roman;}
|
|
||||||
'''
|
|
Loading…
x
Reference in New Issue
Block a user