mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
49 lines
1.9 KiB
Python
49 lines
1.9 KiB
Python
#!/usr/bin/env python
|
|
__license__ = 'GPL v3'
|
|
__author__ = 'Gambarini, based on Darko Miletic'
|
|
__copyright__ = '2009-2010, Darko Miletic <darko.miletic at gmail.com>'
|
|
description = 'Italian daily newspaper - 09-11-2011'
|
|
|
|
'''
|
|
http://www.ilgiornale.it/
|
|
'''
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class IlGiornale(BasicNewsRecipe):
|
|
__author__ = 'GAMBARINI'
|
|
description = 'Italian daily newspaper'
|
|
|
|
cover_url = 'http://www.ilgiornale.it/img_v1/logo.gif'
|
|
title = u'Il Giornale'
|
|
publisher = 'Il Giornale ON-LINE S.r.l.'
|
|
category = 'News, politics, culture, economy, general interest'
|
|
|
|
language = 'it'
|
|
timefmt = '[%a, %d %b, %Y]'
|
|
|
|
oldest_article = 7
|
|
max_articles_per_feed = 100
|
|
use_embedded_content = False
|
|
|
|
no_stylesheets = True
|
|
conversion_options = {'linearize_tables': True}
|
|
remove_javascript = True
|
|
|
|
keep_only_tags = [dict(name='h1', attrs={
|
|
'class': 'entry-title'}), dict(name='div', attrs={'id': 'insertbox_text'})]
|
|
|
|
feeds = [
|
|
(u'Ultime Notizie', u'http://www.ilgiornale.it/rss.xml'),
|
|
# (u'All\'Interno', u'http://www.ilgiornale.it/la_s.pic1?SID=8&RSS=S'),
|
|
# (u'Esteri', u'http://www.ilgiornale.it/la_s.pic1?SID=6&RSS=S'),
|
|
# (u'Economia', u'http://www.ilgiornale.it/la_s.pic1?SID=5&RSS=S'),
|
|
# (u'Cultura', u'http://www.ilgiornale.it/la_s.pic1?SID=4&RSS=S'),
|
|
# (u'Spettacoli', u'http://www.ilgiornale.it/la_s.pic1?SID=14&RSS=S'),
|
|
# (u'Sport', u'http://www.ilgiornale.it/la_s.pic1?SID=15&RSS=S'),
|
|
# (u'Tech&Web', u'http://www.ilgiornale.it/la_s.pic1?SID=35&RSS=S'),
|
|
# (u'Edizione di Roma', u'http://www.ilgiornale.it/roma.pic1?SID=13&RSS=S'),
|
|
# (u'Edizione di Milano', u'http://www.ilgiornale.it/milano.pic1?SID=9&RSS=S'),
|
|
# (u'Edizione di Genova', u'http://www.ilgiornale.it/genova.pic1?SID=7&RSS=S')
|
|
]
|