mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
49 lines
1.5 KiB
Python
49 lines
1.5 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 - 14-05-2010'
|
|
|
|
'''
|
|
http://www.apcom.NET/
|
|
'''
|
|
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
class Apcom(BasicNewsRecipe):
|
|
__author__ = 'Marini Gabriele'
|
|
description = 'Italian daily newspaper'
|
|
|
|
cover_url = 'http://www.apcom.net/img/logoAP.gif'
|
|
title = u'Apcom'
|
|
publisher = 'TM News S.p.A.'
|
|
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={'id':'ag_center'})
|
|
]
|
|
|
|
|
|
|
|
feeds = [
|
|
(u'Globale', u'http://www.apcom.net/rss/globale.xml '),
|
|
(u'Politica', u'http://www.apcom.net/rss/politica.xml'),
|
|
(u'Cronaca', u'http://www.apcom.net/rss/cronaca.xml'),
|
|
(u'Econimia', u'http://www.apcom.net/rss/economia.xml'),
|
|
(u'Esteri', u'http://www.apcom.net/rss/esteri.xml'),
|
|
(u'Cultura', u'http://www.apcom.net/rss/cultura.xml'),
|
|
(u'Sport', u'http://www.apcom.net/rss/sport.xml')
|
|
]
|