mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
APCOM and Leggo (it) by Marini Gabriele
This commit is contained in:
parent
0c18cf92e3
commit
c3a77d4fab
48
resources/recipes/apcom.recipe
Normal file
48
resources/recipes/apcom.recipe
Normal file
@ -0,0 +1,48 @@
|
||||
#!/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')
|
||||
]
|
49
resources/recipes/leggo_it.recipe
Normal file
49
resources/recipes/leggo_it.recipe
Normal file
@ -0,0 +1,49 @@
|
||||
#!/usr/bin/env python
|
||||
__license__ = 'GPL v3'
|
||||
__author__ = 'Gabriele Marini, based on Darko Miletic'
|
||||
__copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
|
||||
description = 'Italian daily newspaper - v1.00 05-05-2010'
|
||||
|
||||
'''
|
||||
http://www.leggo.it
|
||||
'''
|
||||
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
class LeggoIT(BasicNewsRecipe):
|
||||
__author__ = 'Gabriele Marini'
|
||||
description = 'Italian Free daily newspaper'
|
||||
|
||||
cover_url = 'http://www.leggo.it/img/logo-leggo2.gif'
|
||||
title = u'Leggo.it'
|
||||
publisher = 'Ced Caltagirone Editore S.p.A.'
|
||||
category = 'News, politics, culture, economy, general interest'
|
||||
|
||||
language = 'it'
|
||||
timefmt = '[%a, %d %b, %Y]'
|
||||
|
||||
oldest_article = 5
|
||||
max_articles_per_feed = 100
|
||||
use_embedded_content = False
|
||||
recursion = 100
|
||||
|
||||
no_stylesheets = True
|
||||
remove_javascript = True
|
||||
conversion_options = {'linearize_tables':True}
|
||||
|
||||
keep_only_tags = [
|
||||
dict(name='h1',attrs={'class':'nero22'}),
|
||||
dict(name='div',attrs={'id':'testodim'})
|
||||
]
|
||||
feeds = [
|
||||
(u'Home Page', u'http://www.leggo.it/rss/home.xml'),
|
||||
(u'Italia', u'http://www.leggo.it/rss/italia.xml'),
|
||||
(u'Esteri', u'http://www.leggo.it/rss/esteri.xml'),
|
||||
(u'Economia', u'http://www.leggo.it/rss/economia.xml'),
|
||||
(u'Sport', u'http://www.leggo.it/rss/sport.xml'),
|
||||
(u'Gossip', u'http://www.leggo.it/rss/gossip.xml'),
|
||||
(u'Spettacoli', u'http://www.leggo.it/rss/spettacoli.xml'),
|
||||
(u'Salute', u'http://www.leggo.it/rss/salute.xml'),
|
||||
(u'Scienza', u'http://www.leggo.it/rss/scienza.xml')
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user