From 75341b3c99fb871620def6c872c3ced41dd244d6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 4 Nov 2011 18:44:44 +0530 Subject: [PATCH] Catavencii by Silviu Cotoara --- recipes/catavencii.recipe | 51 +++++++++++++++++++++++++++++++++++ recipes/icons/catavencii.png | Bin 0 -> 600 bytes 2 files changed, 51 insertions(+) create mode 100644 recipes/catavencii.recipe create mode 100644 recipes/icons/catavencii.png diff --git a/recipes/catavencii.recipe b/recipes/catavencii.recipe new file mode 100644 index 0000000000..7dff212d74 --- /dev/null +++ b/recipes/catavencii.recipe @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +#!/usr/bin/env python + +__license__ = 'GPL v3' +__copyright__ = u'2011, Silviu Cotoar\u0103' +''' +catavencii.ro +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class Catavencii(BasicNewsRecipe): + title = u'Ca\u0163avencii' + __author__ = u'Silviu Cotoar\u0103' + publisher = u'Ca\u0163avencii' + description = u'Ca\u0163avencii' + oldest_article = 5 + language = 'ro' + max_articles_per_feed = 100 + no_stylesheets = True + use_embedded_content = False + category = 'Ziare,Romania' + encoding = 'utf-8' + cover_url = 'http://www.simonatache.ro/wp-content/uploads/2011/06/catavencii-logo.png' + + conversion_options = { + 'comments' : description + ,'tags' : category + ,'language' : language + ,'publisher' : publisher + } + + keep_only_tags = [ + dict(name='div', attrs={'id':'content'}) + ] + + remove_tags = [ + dict(name='div', attrs={'id':'breadcrumbs'}) + , dict(name='span', attrs={'class':'info'}) + , dict(name='div', attrs={'id':'social-media-article'}) + ] + + remove_tags_after = [ + dict(name='div', attrs={'id':'social-media-article'}) + ] + feeds = [ + (u'\u0218tiri', u'http://www.catavencii.ro/rss') + ] + + def preprocess_html(self, soup): + return self.adeify_images(soup) diff --git a/recipes/icons/catavencii.png b/recipes/icons/catavencii.png new file mode 100644 index 0000000000000000000000000000000000000000..87d87ba9ddca8a7f1066f05a960dbe2ef806ee5e GIT binary patch literal 600 zcmV-e0;m0nP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!~g&e!~vBn4jTXf0qsddK~y+Tg_GSY zgK-qcAJ%4h3)vcLq(oviZ!<5+1&Rwq`~ynK%}SKGP;!F{v@5xAOG+ukl`G1HLN4TD zSCf~vVc6LCI_KFQd7c>;zn-1v`JK=Cp6}Ta;2#7Yy8v$^@N5G6%nwQ96gjP zh}9WDAD#305Cq}ZqsvxfXR|n>P*OsICd>5hN5SzT26(k$ZM6_P8%4kyef+e;cUy(_){GcP zgFOv+Q7T|#cx(YmmPSRro*k7zrAm-Na&t5Y+*BzPFo65|o-@T%<@(YJtu|2x(2);* zH~AoIffD&Ls1*cB1xrLdmX``*S|}>iBJ82jD@`04(4((A3nzzVxVo@lekKpvBzbi< zxxXhX@~4sks9(ph;omVbV0%4kv=T5rlKU^9x09;#l-MgJU~<&>C!nS>1ztC~&;GFK zB0yTEHyc)*1xQO(#X#~*8caW+0Z(=CxTZu|xl5}YODfbIcW=g#qMJJ2^0000