From 4018a811cb35397c0a157cb7036e32359979a0f8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 5 Feb 2010 21:17:45 -0700 Subject: [PATCH] El Comerico by Darko Miletic --- resources/images/news/elcomercio.png | Bin 0 -> 764 bytes resources/recipes/elcomercio.recipe | 38 +++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 resources/images/news/elcomercio.png create mode 100644 resources/recipes/elcomercio.recipe diff --git a/resources/images/news/elcomercio.png b/resources/images/news/elcomercio.png new file mode 100644 index 0000000000000000000000000000000000000000..df484860dde90a1a0e4be214f11df2c8920fc23c GIT binary patch literal 764 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zK-vS0-A-oPfdtD69Mgd`SU*F|v9*U87?@N&T^vI!PA{Ew-#a)_;<){(dyD7#o}cyn z2XiuW{e_Sj9NS`DOM(RgCF8mr#qYgY^!nW&?mZp9m|q=|mMl|rG->i$xp~*j<};4= z+ZJk@pH;qHm@A$y?%wYaG2#B~>H6nC*Zlaj$A9vapdzkHhHqJ=V#chKZYo_|aBePl z?UwCY3@V#lr|r)RTy=#n>+f-fvkaF%YwM(aa%r|&Su^wHPf-TB{r`Pz5}5?vU5PmJ zb zU+Uj4SnDdlD`)D~Y_)O1xx-I|mwBl^H|4Q$j+OGaGua`_d1>`Z8NIE0LlakcA3ifR z_D9^>bLY?cIz4BXJ#dK0H^@uUf5wtesfXrDF#sL(_4jso)=E-hh?2Sfb7^;NrJ!>(jDf`BT?$`TwE(N}fL}e>{4B6qtHcOI#yLQW8s2 zt&)pUffR$0fuVt}fsw9(X^4@bm7$rHv8Aqoxs`#zmDKgZC>nC}Q!>*kku?~aTbY=rAP2>Oo literal 0 HcmV?d00001 diff --git a/resources/recipes/elcomercio.recipe b/resources/recipes/elcomercio.recipe new file mode 100644 index 0000000000..37733bda8b --- /dev/null +++ b/resources/recipes/elcomercio.recipe @@ -0,0 +1,38 @@ + +__license__ = 'GPL v3' +__copyright__ = '2010, Darko Miletic ' +''' +elcomercio.com +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class ElComercio(BasicNewsRecipe): + title = 'El Comercio ' + __author__ = 'Darko Miletic' + description = "Gizmodo, the gadget guide. So much in love with shiny new toys, it's unnatural." + publisher = 'GRUPO EL COMERCIO C.A.' + category = 'news, Ecuador, politics' + oldest_article = 2 + max_articles_per_feed = 100 + no_stylesheets = True + encoding = 'utf-8' + use_embedded_content = True + language = 'es' + masthead_url = 'http://ww1.elcomercio.com/nv_images/headers/EC/logo_new_08.gif' + extra_css = ' body{font-family: Arial,Verdana,sans-serif} img{margin-bottom: 1em} ' + + conversion_options = { + 'comment' : description + , 'tags' : category + , 'publisher' : publisher + , 'language' : language + } + + remove_attributes = ['width','height'] + + feeds = [(u'Articles', u'http://ww1.elcomercio.com/rss/titulares1.xml')] + + def preprocess_html(self, soup): + return self.adeify_images(soup) +