From 8477c4313e7977e9bde2f33e12de5b742f4b9c8b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 13 Jan 2010 14:24:28 -0700 Subject: [PATCH] New recipe for El Universal (Venezuela) by Darko Miletic --- resources/images/news/eluniversal_ve.png | Bin 0 -> 521 bytes resources/recipes/eluniversal_ve.recipe | 52 +++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 resources/images/news/eluniversal_ve.png create mode 100644 resources/recipes/eluniversal_ve.recipe diff --git a/resources/images/news/eluniversal_ve.png b/resources/images/news/eluniversal_ve.png new file mode 100644 index 0000000000000000000000000000000000000000..9211ee2739be1baf2cd9c60d15163d5421f2e835 GIT binary patch literal 521 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zK-vS0-A-oPfdtD69Mgd`SU*F|v9*U87#NK_T^vI!PG6n8(VMAI@&!&Uc;un9L&M9{@mC*aT z?0EH_^Y8b5ueF!l#&eWw+1j8#<_w)#v5&X?n>+cm)~98UKKUK~yfBG%%G!qG%L?k2 zKK_{?%A9h;=*qvsrnM#_XB60O_&$7C=k_w>cqX@Owbb)P?$+O?xQLutBAS}bXkj(w zsawaKixP9D8GJhE;q)%SvNYLYyZV%KB?@!CUvG#B3*0^P;ZK84)3fF4CKyg_In#FN z^Fdi1hxxU;HJ40^w' +''' +www.eluniversal.com +''' + +from calibre import strftime +from calibre.web.feeds.recipes import BasicNewsRecipe + +class ElUniversal(BasicNewsRecipe): + title = 'El Universal' + __author__ = 'Darko Miletic' + description = 'Noticias de Venezuela' + oldest_article = 2 + max_articles_per_feed = 100 + no_stylesheets = True + use_embedded_content = False + encoding = 'cp1252' + publisher = 'El Universal' + category = 'news, Caracas, Venezuela, world' + language = 'es' + cover_url = strftime('http://static.eluniversal.com/%Y/%m/%d/portada.jpg') + + conversion_options = { + 'comments' : description + ,'tags' : category + ,'language' : language + ,'publisher' : publisher + } + + keep_only_tags = [dict(name='div', attrs={'class':'Nota'})] + remove_tags = [ + dict(name=['object','link','script','iframe']) + ,dict(name='div',attrs={'class':'Herramientas'}) + ] + + feeds = [ + (u'Ultimas Noticias', u'http://www.eluniversal.com/rss/avances.xml' ) + ,(u'Economia' , u'http://www.eluniversal.com/rss/eco_avances.xml') + ,(u'Internacionales' , u'http://www.eluniversal.com/rss/int_avances.xml') + ,(u'Deportes' , u'http://www.eluniversal.com/rss/dep_avances.xml') + ,(u'Cultura' , u'http://www.eluniversal.com/rss/cul_avances.xml') + ,(u'Nacional y politica' , u'http://www.eluniversal.com/rss/pol_avances.xml') + ,(u'Ciencia y tecnologia', u'http://www.eluniversal.com/rss/cyt_avances.xml') + ,(u'Universo empresarial', u'http://www.eluniversal.com/rss/uni_avances.xml') + ,(u'Caracas' , u'http://www.eluniversal.com/rss/ccs_avances.xml') + ] + + def print_version(self, url): + rp,sep,rest = url.rpartition('/') + return rp + sep + 'imp_' + rest +