From e05c862dd0c47239e701fbdd4fefa96a1deb3298 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 24 Aug 2012 19:31:30 +0530 Subject: [PATCH] CIPER Chile by Darko Miletic. Fixes #1041189 (New recipe for CIPER Chile) --- recipes/ciperchile.recipe | 58 +++++++++++++++++++++++++++++++++++ recipes/icons/ciperchile.png | Bin 0 -> 1551 bytes 2 files changed, 58 insertions(+) create mode 100644 recipes/ciperchile.recipe create mode 100644 recipes/icons/ciperchile.png diff --git a/recipes/ciperchile.recipe b/recipes/ciperchile.recipe new file mode 100644 index 0000000000..e1576c9958 --- /dev/null +++ b/recipes/ciperchile.recipe @@ -0,0 +1,58 @@ +__license__ = 'GPL v3' +__copyright__ = '2012, Darko Miletic ' +''' +ciperchile.cl +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class CiperChile(BasicNewsRecipe): + title = 'CIPER Chile' + __author__ = 'Darko Miletic' + description = 'El Centro de Investigacion e Informacion Periodistica (CIPER) es una institucion independiente que desarrolla reportajes de investigacion de acuerdo a principios de maxima calidad e integridad profesional. Para lograr dicho objetivo, los profesionales de CIPER incorporan a las tecnicas propias del reporteo el uso sistematico de las leyes chilenas que norman el libre acceso a la informacion, de manera que los documentos que se obtengan por esta via esten puestos a disposicion del publico sin restricciones.' + publisher = 'CIPER' + category = 'news, politics, Chile' + oldest_article = 15 + max_articles_per_feed = 200 + no_stylesheets = True + encoding = 'utf8' + use_embedded_content = False + language = 'es_CL' + auto_cleanup = False + remove_empty_feeds = True + publication_type = 'blog' + masthead_url = 'http://ciperchile.cl/wp-content/themes/cipertheme/css/ui/ciper-logo.png' + extra_css = """ + body{font-family: Arial,sans-serif} + .excerpt{font-family: Georgia,"Times New Roman",Times,serif; font-style: italic; font-size: 1.25em} + .author{font-family: Georgia,"Times New Roman",Times,serif; font-style: italic; font-size: small} + .date{font-family: Georgia,"Times New Roman",Times,serif; font-size: small; color: grey} + .epigrafe{font-size: small; color: grey} + img{margin-bottom: 0.4em; display:block} + """ + + conversion_options = { + 'comment' : description + , 'tags' : category + , 'publisher' : publisher + , 'language' : language + } + + remove_tags = [ + dict(name=['meta','link']), + dict(attrs={'class':['articleSharingTools','articleNav']}) + ] + remove_attributes=['lang'] + remove_tags_before=dict(name='p', attrs={'class':'epigrafe'}) + remove_tags_after=dict(name='div', attrs={'class':'articleBody'}) + keep_only_tags = [dict(name='div', attrs={'class':'articleElements'})] + + feeds = [ + (u'Opinion del lector', u'http://ciperchile.cl/category/opinion-del-lector/feed/') + ,(u'Reportajes de investigacion', u'http://ciperchile.cl/category/reportajes-de-investigacion/feed/') + ,(u'Actualidad y Entrevistas', u'http://ciperchile.cl/category/actualidad-y-entrevistas/feed/') + ,(u'Opinion', u'http://ciperchile.cl/category/opinion/feed/') + ,(u'Accesso a la informacion', u'http://ciperchile.cl/category/acceso-a-la-informacion/feed/') + ,(u'Libros', u'http://ciperchile.cl/category/libros/feed/') + ,(u'Blog', u'http://ciperchile.cl/category/blog/feed/') + ] diff --git a/recipes/icons/ciperchile.png b/recipes/icons/ciperchile.png new file mode 100644 index 0000000000000000000000000000000000000000..93e4062a5e145aa3a5a969ffa0523fd3cb05251a GIT binary patch literal 1551 zcmV+q2JrcbP)Q;F1CjK&vQ930e+NBr9leB8B1)5W{&{Ao$)_ zBC})kj8CtwZSZ%R*KKkP3OTWZ2O}$RGR6=vL}GqmhI9YKLI}JNHSTDbLa3&=eD|;p zG-2)R)9dGfy9k#CcRc7&lvF-*KeKpDS02qemm+|7-5J?D5J#Q-W-Qyny^wH#F zk#!W!L=)*=&gnpGLEY2qjvoue9ZOl!KB+p!q|U~_Xy11F&*;UoU(VdP4p(q0Ar4`8 zGPoei7)m=QVPL_h!0U0D5^Mj-~xD9aEeb%+yk5z+@6^0MweQ-{I|`!uJ1dPX?v(Wx^Pi* zOun{`5))d4A)))E@l}FS1JTBDrb;DOhsiCgSg>;jp2Nk%n{+H7ORQbp)!o?wL~9JW z2$>-g)grr&%OBknomC3L!r+mK@2O-VJ?l}M67Hg zQC|auXeJpZ@-3e?3=O8wzSlci?s)LYH+H}O&h}^nak9P^p;U0jlOy09R2BU4`I@*8 zt32a!8Izg{M=FmGn?nb$o!k>UpWHf_+OkV8==Nme6KP*%xgu5*kp4cIv)P&qAayn! zPL_HLdiNuZ8;*2d?s>XDvvF&sZNaT%VQ4vR$u6XYrP4^j~CE&xaHwR zeT(De`8`hSJIQ>oP!e!ZAtR_u@O{#wSd_IH)co}Cx-pSq9+rQCnjDwW|B6x~5!Sk_ zgZd1N;i}FycfQzhM?z=NoZ2##s(D$ey7=S(-#Ms+aK%6wv0SgfJT%38DP5?kfxZtD zjiws)vd z6Mf|Bvkt(ALS5QizO*=pBREK987f1?g%f*%!y4o^c%b<86L{sD(TSz2f~Vrc*X002ovPDHLkV1hjN B?BoCd literal 0 HcmV?d00001