mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
59 lines
2.2 KiB
Python
59 lines
2.2 KiB
Python
#!/usr/bin/env python
|
|
__license__ = 'GPL v3'
|
|
__author__ = 'Gabriele Marini, based on Darko Miletic'
|
|
__copyright__ = '2009-2010, Darko Miletic <darko.miletic at gmail.com>'
|
|
description = 'Italian daily newspaper - 13-05-2010'
|
|
|
|
'''
|
|
http://www.libero-news.it/
|
|
'''
|
|
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class LiberoNews(BasicNewsRecipe):
|
|
__author__ = 'Marini Gabriele'
|
|
description = 'Italian daily newspaper'
|
|
|
|
cover_url = 'http://www.edicola.liberoquotidiano.it/vnlibero/fpcut.jsp?testata=milano'
|
|
title = u'Libero '
|
|
publisher = 'EDITORIALE LIBERO s.r.l 2006'
|
|
category = 'News, politics, culture, economy, general interest'
|
|
|
|
language = 'it'
|
|
timefmt = '[%a, %d %b, %Y]'
|
|
|
|
oldest_article = 7
|
|
max_articles_per_feed = 50
|
|
use_embedded_content = False
|
|
recursion = 100
|
|
|
|
no_stylesheets = True
|
|
conversion_options = {'linearize_tables': True}
|
|
remove_javascript = True
|
|
|
|
keep_only_tags = [
|
|
dict(name='div', attrs={'class': 'Articolo'}),
|
|
dict(name='article')
|
|
]
|
|
remove_tags = [
|
|
dict(name='div', attrs={
|
|
'class': ['CommentaFoto', 'Priva2', 'login_commenti', 'box_16']}),
|
|
dict(name='div', attrs={'id': ['commentigenerale']})
|
|
]
|
|
feeds = [
|
|
(u'Politica', u'http://www.libero-news.it/rss.jsp?sezione=14'),
|
|
(u'Italia', u'http://www.libero-news.it/rss.jsp?sezione=15'),
|
|
(u'Esteri', u'http://www.libero-news.it/rss.jsp?sezione=16'),
|
|
(u'Economia', u'http://www.libero-news.it/rss.jsp?sezione=17'),
|
|
(u'Cultura', u'http://www.libero-news.it/rss.jsp?sezione=18'),
|
|
(u'Scienze', u'http://www.libero-news.it/rss.jsp?sezione=19'),
|
|
(u'Tecnologia', u'http://www.libero-news.it/rss.jsp?sezione=20'),
|
|
(u'LifeStyle', u'http://www.libero-news.it/rss.jsp?sezione=22'),
|
|
(u'Sport', u'http://www.libero-news.it/rss.jsp?sezione=23'),
|
|
(u'Costume e Societ\xc3\xa0', u' http://www.libero-news.it/rss.jsp?sezione=24'),
|
|
(u'Milano', u'http://www.libero-news.it/rss.jsp?sezione=26'),
|
|
(u'Roma', u'http://www.libero-news.it/rss.jsp?sezione=27'),
|
|
(u'Alimentazione', u'http://www.libero-news.it/rss.jsp?sezione=29')
|
|
]
|