From fa0c8702b0d6d51ae7d96f1c14e43c27beb9f7c7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 11 May 2011 16:33:23 -0600 Subject: [PATCH] ... --- recipes/divahair.recipe | 53 ++++++++++++++++++++++++++++++++++ recipes/icons/divahair.png | Bin 0 -> 675 bytes recipes/icons/mayra.png | Bin 0 -> 620 bytes recipes/icons/moldovaazi.png | Bin 0 -> 243 bytes recipes/icons/newsmoldova.png | Bin 0 -> 837 bytes recipes/mayra.recipe | 51 ++++++++++++++++++++++++++++++++ recipes/moldovaazi.recipe | 50 ++++++++++++++++++++++++++++++++ recipes/newsmoldova.recipe | 50 ++++++++++++++++++++++++++++++++ 8 files changed, 204 insertions(+) create mode 100644 recipes/divahair.recipe create mode 100644 recipes/icons/divahair.png create mode 100644 recipes/icons/mayra.png create mode 100644 recipes/icons/moldovaazi.png create mode 100644 recipes/icons/newsmoldova.png create mode 100644 recipes/mayra.recipe create mode 100644 recipes/moldovaazi.recipe create mode 100644 recipes/newsmoldova.recipe diff --git a/recipes/divahair.recipe b/recipes/divahair.recipe new file mode 100644 index 0000000000..978ac19808 --- /dev/null +++ b/recipes/divahair.recipe @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +#!/usr/bin/env python + +__license__ = 'GPL v3' +__copyright__ = u'2011, Silviu Cotoar\u0103' +''' +divahair.ro +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class DivaHair(BasicNewsRecipe): + title = u'Diva Hair' + language = 'ro' + __author__ = u'Silviu Cotoar\u0103' + description = u'Coafuri, frizuri, tunsori ..' + publisher = u'Diva Hair' + category = u'Ziare,Stiri,Coafuri,Femei' + oldest_article = 5 + max_articles_per_feed = 100 + no_stylesheets = True + use_embedded_content = False + encoding = 'utf-8' + remove_javascript = True + cover_url = 'http://www.divahair.ro/imgs/logo.jpg' + + conversion_options = { + 'comments' : description + ,'tags' : category + ,'language' : language + ,'publisher' : publisher + } + + keep_only_tags = [ + dict(name='td', attrs={'class':'spatiuart'}) + , dict(name='div', attrs={'class':'spatiuart'}) + ] + + + remove_tags = [ + dict(name='div', attrs={'class':'categorie'}) + , dict(name='div', attrs={'class':'gri gri2 detaliiart'}) + , dict(name='div', attrs={'class':'articol_box_bottom'}) + ] + + remove_tags_after = [ + dict(name='div', attrs={'class':'articol_box_bottom'}) + ] + + feeds = [ (u'\u0218tiri', u'http://www.divahair.ro/feed') ] + + def preprocess_html(self, soup): + return self.adeify_images(soup) diff --git a/recipes/icons/divahair.png b/recipes/icons/divahair.png new file mode 100644 index 0000000000000000000000000000000000000000..4cb2964687b0acf7fc5d93332ca5963bb1d96a63 GIT binary patch literal 675 zcmV;U0$lxxP)jf%BN7SpBJEufALZZ58cfd7ZMb2yJMDZK6 zM5*`@t`{VWwuMAuqDiB<_wCS=ru5g%!$ZHyVdT;~+ zXl^&cZbt~gLy@wn3HviY&dyF;!5|I6Aa=hWt-1M87(m**J{%n#I9~;E1w+`|+R$2B z5Kh;lFo1Lf0yw+7afL$I12528Tak^82>Cb+Af4SWafL!S+S{?YpCX?$A*B2-7(lv$ zA-?_m#mCuMrjto(C={@`xQJmG7={5rxm;#xX$hqiySuyW?Ckv8psR~7$s}*1QLd_0 z#>dA2n3|d*m&-9fKaWz1csx$ES_NQiY>aq3{#Ri4`LJv@qW%4hj*g=1I{ADauh&aB z97fl5EXyL5N-;P%$nx?s(P)%Hp@32fSp+iHQjY1_rn)7O5N`BQx17kw^r9xw$#|`uaFLJgm=z5X{WXFfuYiI-N$7lCRU# zoSmHT)fGxxTU4`IsMYEn+e4tby`_43N@;VG;_3?Jg9EHm=}z~KKv@>GT#oB>n&RpT zSKHg%oS&mi^WNX63zSk=l?uOgozmJG#q~8Rx{j(;>esk0e*pJl2G9Ddg zkKy*DcOS*DZoy&@d|KO>tUb-!fe4*7xRmEB>!Q?lw*0vS5Osp0EVNOb;cSQV}sH!*s zwp1o^G}FA&9%YOnc69{TOH+N61Hk#cgNb(RDQ=lKhOTQP)E~b@t;JE*=H%BlQL+DJ z5*a>>E^i_~SBMY_C`i75f2fB~Q!|8Ni0ADi8tvpqex4IU$C;V_!az1dskFxM>66eI z!7i0?Xrche5C#ph*?!XL6xC{tLZL_~!rM3RNvBg(DjO76iXaxOLc|ckbwDgm-+q$O z4&uo;$y5SVSzIhIIGAO9y-fc=hFYygDwV`8t)qn0@4cNFfj(aLY z?BW?+fa>a+8<_IPn1; oXT0iAyAf3;VL#XQd-Z>|sWM#kdXX$=fEF@%y85}Sb4q9e0J&XVnE(I) literal 0 HcmV?d00001 diff --git a/recipes/icons/newsmoldova.png b/recipes/icons/newsmoldova.png new file mode 100644 index 0000000000000000000000000000000000000000..a4faaa46357560501f42c45788b34e86896ff51e GIT binary patch literal 837 zcmV-L1G@Z)P)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!~g&e!~vBn4jTXf0@_JLK~y+Tm66#` zQ$ZBQ@8998&n9Z3PyPoc#>A)*g#=A7CPp6=7YY~!0!ly-1VSmB>_MSn4TYAarIc1$ z*3#bY_jWI|R4k>He$EVmg!tr5CU?#^=lsrhW;p!E_vB*_#x(0^D!A@R9S#mt7+>6g z(;I=LNzUS-Sre?DAo>*syr><-^s*V9<4ZV5rda%?U&(T~%Qg%AoFhjFj41=sQ_ z@pW((&#L-ak)%^oB)0$lE^FXVvf!L zXySu+tqgFdK#Ki?V+YjYsCpeE3v0}QZqtc#*I(nt%Z7gey~Gx~gCZF&W|y*rtYR51 zWR+mc>0Fki$N4cria5}c)ebh zM>VU}icly7PNht_((*TQJi`!Qe&fe$CZ6;3!&yC4!V0GZAYg=H6YYLNlj zmi_2m38IFa?~;!78ZTOjCL^n6UWCHB3$A)zU|lFgz8;1_h@(R3IR#9ZcTl2mu`yb7 zK1i2*XeZ4YwLWx^KSzVAS%KNARC&;0piX>P^2E`!=*8zbfpw*Ez1quM(J^v*%qX5D zm)K1#PV-Up7=vga1#~28Eq~OGS7g