From ed118bbaa01a30ea45aa51f6d47ddb625ba7b9e2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 17 Apr 2012 14:43:48 +0530 Subject: [PATCH] Various Italian news sources by faber1971 --- recipes/camera_di_commercio_di_bari.recipe | 17 ++++++++ recipes/liberatorio_politico.recipe | 12 ++++++ recipes/limes.recipe | 50 ++++++++++++++++++++++ 3 files changed, 79 insertions(+) create mode 100644 recipes/camera_di_commercio_di_bari.recipe create mode 100644 recipes/liberatorio_politico.recipe create mode 100644 recipes/limes.recipe diff --git a/recipes/camera_di_commercio_di_bari.recipe b/recipes/camera_di_commercio_di_bari.recipe new file mode 100644 index 0000000000..c80a825883 --- /dev/null +++ b/recipes/camera_di_commercio_di_bari.recipe @@ -0,0 +1,17 @@ +from calibre.web.feeds.news import BasicNewsRecipe + +class AdvancedUserRecipe1331729727(BasicNewsRecipe): + title = u'Camera di Commercio di Bari' + oldest_article = 7 + __author__ = 'faber1971' + description = 'News from the Chamber of Commerce of Bari' + language = 'it' + max_articles_per_feed = 100 + auto_cleanup = True + masthead_url = 'http://www.ba.camcom.it/grafica/layout-bordo/logo_camcom_bari.png' + feeds = [(u'Camera di Commercio di Bari', u'http://feed43.com/4715147488845101.xml')] + +__license__ = 'GPL v3' +__copyright__ = '2012, faber1971' +__version__ = 'v1.00' +__date__ = '17, April 2012' diff --git a/recipes/liberatorio_politico.recipe b/recipes/liberatorio_politico.recipe new file mode 100644 index 0000000000..bbffcd89b1 --- /dev/null +++ b/recipes/liberatorio_politico.recipe @@ -0,0 +1,12 @@ +from calibre.web.feeds.news import BasicNewsRecipe + +class AdvancedUserRecipe1334649829(BasicNewsRecipe): + title = u'Liberatorio Politico' + oldest_article = 7 + max_articles_per_feed = 100 + auto_cleanup = True + masthead_url = 'http://liberatorio.altervista.org/wp-content/uploads/2012/01/Testata-LIBERATORIO-Altervista1.jpg' + feeds = [(u'Liberatorio Politico', u'http://liberatorio.altervista.org/feed/')] + __author__ = 'faber1971' + description = 'Inquiry journalism - a blog on Molfetta, Land of Bari, Apulia and Italy - v1.00 (07, April 2012)' + language = 'it' diff --git a/recipes/limes.recipe b/recipes/limes.recipe new file mode 100644 index 0000000000..2290b7099e --- /dev/null +++ b/recipes/limes.recipe @@ -0,0 +1,50 @@ +#!/usr/bin/env python +__license__ = 'GPL v3' +__copyright__ = '2012, faber1971' +__version__ = 'v1.00' +__date__ = '16, April 2012' +__description__ = 'Geopolitical Italian magazine' + + +from calibre.web.feeds.news import BasicNewsRecipe + +class Limes(BasicNewsRecipe): + description = 'Italian weekly magazine' + __author__ = 'faber1971' + + cover_url = 'http://temi.repubblica.it/UserFiles/limes/Image/Loghi/logo-limes.gif' + title = 'Limes' + category = 'Geopolitical news' + + language = 'it' +# encoding = 'cp1252' + timefmt = '[%a, %d %b, %Y]' + + oldest_article = 16 + max_articles_per_feed = 100 + use_embedded_content = False + recursion = 10 + + remove_javascript = True + no_stylesheets = True + masthead_url = 'http://temi.repubblica.it/UserFiles/limes/Image/Loghi/logo-limes.gif' + + feeds = [ + (u'Limes', u'http://temi.repubblica.it/limes/feed/') + ] + + + + keep_only_tags = [ + dict(name='div', attrs={'class':['testo','copertina','occhiello','firma','didascalia','content-second-right','detail-articles','titolo-local','generic-articles']}), + dict(name='div', attrs={'class':['generic-articles','summary','detail-articles']}), + dict(name='div', attrs={'id':['content-second-right','content2']}) + ] + + remove_tags = [ + dict(name='div',attrs={'class':['servizi','aggiungi','label-web','bottom-mobile','box-abbonamenti','box-cerca','big','little','stampaweb']}), + dict(name='div',attrs={'id':['topheader','header','navigation-new','navigation','content-second-left','menutext']}), + dict(name='ul',attrs={'id':'user-utility'}), + dict(name=['script','noscript','iframe']) + ] +