From 064008674d630d736616cafdf6b6d5d63606da28 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 8 Nov 2010 10:52:11 -0700 Subject: [PATCH] Avto-magazin by BlonG --- resources/images/news/avto-magazin.png | Bin 0 -> 1461 bytes resources/recipes/avto-magazin.recipe | 46 +++++++++++++++++++++++++ resources/recipes/scprint.recipe | 2 +- 3 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 resources/images/news/avto-magazin.png create mode 100644 resources/recipes/avto-magazin.recipe diff --git a/resources/images/news/avto-magazin.png b/resources/images/news/avto-magazin.png new file mode 100644 index 0000000000000000000000000000000000000000..4a416652f25aff0670924f1100cbd2b4851dd37d GIT binary patch literal 1461 zcmV;m1xosfP)D+j2fLzThq>*c5dhTev9{;Z;0*pY~DQY|9zhGod0uEK7QP| zapg)OY&(_u`4a+xXfzrHO^e4H8bAm|2?W4(r>7?;K?ut#mjP5&Rl)bm<#JiRZ)}7> zpsp?&1tC1o_rZ13=~N1Y5JCtL!gXC2G_A3*sR@GRaw75dEB{F_sO!28t~)*_!VX>Z%p(^FI6IH^=R4Ir(m;=1xXv6x{%P}Ab^cpMZZ z6bgmFaV92GDJYe)S=X&R2SxeQ&BBGDkaSdEACH6YTUMzAt~)-SPJ^PTYUP*YDFX=x z+u9l$AP|T|A`wsnfyIksF|h4#-;zmaZa#OeuMfJrC1u;U%X8bdKhI^$u3Wi#70Tt& z(XU@6Q>j#yp=!wT7c_0jl9m=wRb3BecQi( z&mQ>vdE2(GE|{1&apK64DgzA-r%(6xg09O{2=OP?iXxK|2(-2~HiD`KgTWwpUM`o( zfaA=~nI#twGdi6K{@L`2$&jZl)h6clsREI*~dD(0(2ac1?nx?F^imec!hC6ux{(r=eI(r)4*lO1~GQq67k(2FiyIt*v!+LPR3@d_E61ZkVR$!Q;pB z`T6t5jvYM;yLa#0xnl?1zJ2&`PY-O^aP8XV%MghyUE0wBt5%JU4h_N7)WwUJERKID7W|d5A{WuI=am1_wJko0^0e7-(s!trcQqq`5g772?bp zNm4#vE|<&Vf0Oa?o}PmTg?RtoFmzoARn{j6VcU)arPAEo+#DP_BpC>YXJ=<-syTn~ zVEgthTj1V3S$vty_wR{B6@UBo4vcUJ{0GXfvy^E{z=1n4zNWg^)QvdN|aByg-ia&q;>C?yv^!7?UnH(GYJ;2e? zQmI&k{(f0Ast~qq+kaPgWwdHqb8|~e^*$6bjHV{&>yvs{*QQMyH&*dTq^)h)GB|x& z>ihS1c6M}B@wT@1_T|eVllgaE3=Fil8-@^$Gd-QjR7a?)YFaP|;jkRZXU|H53Nw9u zwY328cs>ts<%+zo?3Lc$MT>$#Sg|6Pb6vQ9U*11`D$i4=nwskBK=nLX{U9k3LXJ?+ za~#(NU9YJDsI8TOWwX*jp&*l^>ye1WWq+Hd#7)z(Zhy07_*Y zJC0npic;mEvQ7XDLu!>VlF7&<*|r?Q_4P9Fg$t#9HY@Q;_e;JY67hY{1Iv=z@E;EF zy-xaC1>*n!03~!qSaf7zbY(hYa%Ew3WdJfTF)%GLF)c7SR536*G&edkGc7PTIxsMR z3^d6A001R)MObuXVRU6WZEs|0W_bWIFflMKF)=MLI8-n=IxsOhGcqkOH##sdE$y}+ P00000NkvXXu0mjf=cl36 literal 0 HcmV?d00001 diff --git a/resources/recipes/avto-magazin.recipe b/resources/recipes/avto-magazin.recipe new file mode 100644 index 0000000000..b88c6b6371 --- /dev/null +++ b/resources/recipes/avto-magazin.recipe @@ -0,0 +1,46 @@ +__license__ = 'GPL v3' +__copyright__ = '2010, BlonG' +''' +avto-magazin.si +''' +from calibre.web.feeds.news import BasicNewsRecipe +class Dnevnik(BasicNewsRecipe): + title = u'Avto Magazin' + __author__ = u'BlonG' + description = u"Za avtomobilistične frike, poznavalce in nedeljske šoferje." + oldest_article = 7 + max_articles_per_feed = 20 + labguage = 'sl' + no_stylesheets = True + use_embedded_content = False + + conversion_options = {'linearize_tables' : True} + + + cover_url = 'https://sites.google.com/site/javno2010/home/avto_magazin_cover.jpg' + + extra_css = ''' + h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;} + h2{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;} + p{font-family:Arial,Helvetica,sans-serif;font-size:small;} + body{font-family:Helvetica,Arial,sans-serif;font-size:small;} + ''' + + keep_only_tags = [ + dict(name='div', attrs={'id':'_iprom_inStream'}), +# dict(name='div', attrs={'class':'entry-content'}), + ] + + remove_tags = [ + dict(name='div', attrs={'id':'voteConfirmation'}), + dict(name='div', attrs={'id':'InsideVote'}), + dict(name='div', attrs={'class':'Zone234'}), + dict(name='div', attrs={'class':'Comments'}), + dict(name='div', attrs={'class':'sorodneNovice'}), + dict(name='div', attrs={'id':'footer'}), + ] + + + feeds = [ + (u'Novice', u'http://www.avto-magazin.si/rss/') + ] diff --git a/resources/recipes/scprint.recipe b/resources/recipes/scprint.recipe index d9ce70f7a2..86b1bb951e 100644 --- a/resources/recipes/scprint.recipe +++ b/resources/recipes/scprint.recipe @@ -1,4 +1,4 @@ -from calibre.web.feeds.recipes import BasicNewsRecipe, LoginFailed +from calibre.web.feeds.news import BasicNewsRecipe, LoginFailed class SCPrintMagazine(BasicNewsRecipe): title = u'SC Print Magazine'