From 3c0af8b77c6779dd0e92211a2bf3677c286e6d2e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 23 Aug 2010 09:54:42 -0600 Subject: [PATCH] Consumerist and Gawker Media by Trickery --- resources/images/news/consumerist.png | Bin 0 -> 887 bytes resources/images/news/deadspin.png | Bin 0 -> 1720 bytes resources/images/news/fleshbot.png | Bin 0 -> 953 bytes resources/images/news/gawker.png | Bin 0 -> 1475 bytes resources/images/news/io9.png | Bin 0 -> 1046 bytes resources/images/news/jalopnik.png | Bin 0 -> 1379 bytes resources/images/news/jezebel.png | Bin 0 -> 233 bytes resources/images/news/kotaku.png | Bin 0 -> 400 bytes resources/images/news/lifehacker.png | Bin 0 -> 1437 bytes resources/recipes/consumerist.recipe | 53 ++++++++++++++++++++++++++ resources/recipes/deadspin.recipe | 44 +++++++++++++++++++++ resources/recipes/fleshbot.recipe | 44 +++++++++++++++++++++ resources/recipes/gawker.recipe | 44 +++++++++++++++++++++ resources/recipes/io9.recipe | 46 ++++++++++++++++++++++ resources/recipes/jalopnik.recipe | 45 ++++++++++++++++++++++ resources/recipes/jezebel.recipe | 45 ++++++++++++++++++++++ resources/recipes/kotaku.recipe | 44 +++++++++++++++++++++ resources/recipes/lifehacker.recipe | 45 ++++++++++++++++++++++ 18 files changed, 410 insertions(+) create mode 100644 resources/images/news/consumerist.png create mode 100644 resources/images/news/deadspin.png create mode 100644 resources/images/news/fleshbot.png create mode 100644 resources/images/news/gawker.png create mode 100644 resources/images/news/io9.png create mode 100644 resources/images/news/jalopnik.png create mode 100644 resources/images/news/jezebel.png create mode 100644 resources/images/news/kotaku.png create mode 100644 resources/images/news/lifehacker.png create mode 100644 resources/recipes/consumerist.recipe create mode 100644 resources/recipes/deadspin.recipe create mode 100644 resources/recipes/fleshbot.recipe create mode 100644 resources/recipes/gawker.recipe create mode 100644 resources/recipes/io9.recipe create mode 100644 resources/recipes/jalopnik.recipe create mode 100644 resources/recipes/jezebel.recipe create mode 100644 resources/recipes/kotaku.recipe create mode 100644 resources/recipes/lifehacker.recipe diff --git a/resources/images/news/consumerist.png b/resources/images/news/consumerist.png new file mode 100644 index 0000000000000000000000000000000000000000..47cceb2b370ca1c03b8892dc844afc6c2fc88b28 GIT binary patch literal 887 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zK-vS0-A-oPfdtD69Mgd`SU*F|v9*U87?>7#x;TbdobH|A>z~Xj(l)=i`u4KJy4$yT zG`PA?p74mx{;KqoPnAh^Z5%Ij_8t2B`|-!L%_om-&rV5Vb5Myf zPrD|>#KYWVutYO(ZP?1N)#iJ3^z}cx*W1_s|76@|u;%HGv~Sl_yBAx_i64!dRsLSE z`)I|y8oTpPo~R^>Jd9a?_)e9C)&6ZtRYIQUlJxSw?mwFzU*jpjvS$7I&HMNBAGmTw zLGp9*mg38`|m)9oVzkImNpTBnf zvGz#&3f-w!x>Zi51bKUV?>f1*(pcF#IPhhyX=4B=w0zYk1Z}<-m-n$wv@E%FZ=uZy(ei+ z?fP}U#`%5v?XUN|-%6ccVpo=I4Rj4Gbd8Kd3@ojT&8&<~ xbPdd`3=BlJKYf6rAvZrIGp!OugQ=B)p_K_#L*MEN$AB6bJYD@<);T3K0RWiOhR^^2 literal 0 HcmV?d00001 diff --git a/resources/images/news/deadspin.png b/resources/images/news/deadspin.png new file mode 100644 index 0000000000000000000000000000000000000000..0b1309c8e09a8feabcce795205d80d6221883818 GIT binary patch literal 1720 zcmV;p21ogcP)e17m{;6l|bCA4ASBP~cBxI57MH?9{;p z4izX648d3&28T5;!1WmgUFlTXqav3l9gmY zoP5vcJj>-h9z8rlo<4id$!7el!GSqp*#-aoli#r%dH`~%y2{RvfKXtX2bkmoCKu5M=KXI$?o(rIa7(`;KG>2n(QPAu4mm zc;FrgTT~UZx6^-tN6@8?WQj2s>T~C4wPYB&EAehP;em)?c0jVbb14O3S9|yO1PQN| zQY-F`$Sp(`0GJueVE_@_9e3y1i(@Pu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^c>ppnF)%GKI4v?WR4_F%I&z~O*{!-Iwft*r?Mn;2t@ z4!ltDj*9g1vMQh2kyicd>+5;uw&LAKA8{`D_p|L=SuDgFJ%%m9+g zwEH!6PV}2q{d(FRY?od>HrKUV`|%^s$rX9^4R+QfLEb8-0< ze&J6!|K_uLADrg3d!_mBa>K@XqW8EZI7OH@1?-7udbBSo#BkbtSx$##Q~#G$P7%7c zo|GY^r1;?7mGAvapVj7;{JqE^!gHVPK_AP#v`swu zM)$U<{`eG~Z@e=vfP?h_0jF-i34J} z+L_T-vqS?w?%29GY^lceKmS=4NR&MZKhJoiL1ee;uL~b-xE!wD&vDAsRf;;-qdr6V z+pguW9ltltFH3pPa-k+OLp^xUx^h{k1A31u8AV>cvD?iRCiTH(v(tAQ0iM_27rt5$ zeQW3C{hG|nx6NDCa^HWy=Z5Fg-m9(f`f}(+SB-t^vkwyrjk1k?<~d2ku9aV|x8XZ; z&Ih(jGvzc()%^EOd1L&v@Yk*LpX(WK&0;ZOUYHXCO!lfJt`Q|Ei6yC4$wjF^iowXh z&_LI~Lf6PR#K6+Z*v!h=r8myd- R-vVl2@O1TaS?83{1OWcGrj-By literal 0 HcmV?d00001 diff --git a/resources/images/news/gawker.png b/resources/images/news/gawker.png new file mode 100644 index 0000000000000000000000000000000000000000..3fb7b52b287e4fcaaa98f8256c1ced44978f1c98 GIT binary patch literal 1475 zcmV;!1w8tRP)fPjI3fq}t+0|o&H4g>@Q1OyZW1_T5I6ciNn4=5-I z2n+}a2naZE;J^Wc0|f>K1_ulb3dh-4I z_rLfrCj?MM<6Wu>s_I{>ky8(~>ym(TXx|gMJ-Uxq-y47sqL3g>gPYHhrUAvkq4v(X z2o#fRTM#q-B#(fb+e-4YCsiG3A&&R1Hub1y!gjT+^UFfC$z3 zIo0JAZayy~5LPR8zx|Q|BZ5>_R31?8qa`2+I0w#+k5mI_fX>J7qn;25-lxn}6>heN z2;gk=e!YgEW<)T*R0}|MMT5nAO4;GA8YQEwg6?-DPX++0mRlc8I4T(mZ2Uk-AT%i@ z6ET?)6%3Jc&M@`8)ldN-1hntKfk@_ofT~*Vb5G-?8uHRTEajvp>lh85uwIv4pnZq- z9a7gP`XhHup_w3Ui#C&?O<=o$2Y(FW*$cS2j>bJA6(FeZ&52mV`1Km?dT-Fx)oAF$n~RMZu^-CCGuGvv)%Xs5^7h_xXqxa|EIA`sh6vx-txn6&Wb-KbEn zznO8g%+OG%4;%Eu@38vwxE^A5RDdkiX8>+GwXo>WW08d3zE8w5hBvlTQTiDeAJ8wK zBG9reG#H~F&)Nyx>~{Ajg9QmCybqjNBf;s{UZy83W$O(@8JG!98~i94O}cr;V+-i z<+6-QHXW@7oI~;yBCuYS(Ql_IoFb^pLOV3Z{qh*>ayh2h+FNYli6F8XNK6Qzw>PDx zrb#pYurQ9s_hb2EtjQ3!uCw$`jQs}5zC*u!P9L{Zn9UDtO9@Kk*yz}$0x@a|gjg46 zxh_S=(TOVD-xVO_#Y>y(M-~Q^WRsAwU0W z>FM^#K;0l07cf7Et~2FzJ+|}Ew3-ne;z|JGT-;tY86Q5_@6pen;M-T2PAwfn%L&kR zHmE*+0C9H<6YH)*EU^umx7*HobW;zjHDa zplNXP^MfMHb~hR6R5+sf;hA%ZISVR2D35WcOx{!%3!{FrrBv$1rm?uPx^r$nq}cqN z>cD(y4Ym_X-B7=HnQcUvH*T@8-7o~x-knE4;;sW{}zg_{o{d{;IqmonJ@QDCf%j)otSR-v~VV+D7=aRSW6gQg{K`MUD zwC~aVj%)DN@(5pydQ_@Hl{fJi~6Un!Jju z^+^W&!Smw){-^Udu)?Vq0Ue*)0000bbVXQnWMOn=I%9HWVRU5xGB7bPEigDOGBZ># zIXW{oIx{paFg7|cFci1t-~a#sC3HntbYx+4WjbwdWNBu305UK!FfA}REiy7xGBG+e dG&(deEig7ZFfd{z?0EnH002ovPDHLkV1n2XlXn0B literal 0 HcmV?d00001 diff --git a/resources/images/news/io9.png b/resources/images/news/io9.png new file mode 100644 index 0000000000000000000000000000000000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Nez literal 0 HcmV?d00001 diff --git a/resources/images/news/jalopnik.png b/resources/images/news/jalopnik.png new file mode 100644 index 0000000000000000000000000000000000000000..f2f7a29c1c20be8da007a05bdb27701d1d6c0942 GIT binary patch literal 1379 zcmV-p1)TbcP)m4R z3MBrCh&n|iC@4}GaB+g;IKnC#*<<_p?)i>l&%ffcFS0FVy4B8m@3Y_cV`dw@UT@4> zTyhoTjg8;<;rkx}JIAHHW>LRux7&RE?N?U^c>ernHaCAq+yZieE5k4yU^W7bqAadQ z0kZ**zx;-xT%CNYP2DF5G4^@!>vLlDFZb_%ayqR_+)O!qMx;cMcn0hrmbwKPu2ZDw_mNdv5&@^uOhFx@444dBu> zP?HQM&c{a(&NUGyh|FO$F&p79%<4&avI8!yK#Y-ASf&+L5F6G`6if_35Uf^74Q~b* z*e>2Lo$+-kfNr-(nXeEWIMO8lU}?Y3y(}U!kC!1L`$Vl%=Kb>Z0CYNkl81tn6pM<< zJBTb|wtvF&BG^8{kZ6MH7NPaw)d9>5Ri)GEpx&XeB5$wZ!wm!n)DyDX>Co?Pk~u*_ zj;YaVy+0e^$&>GRvGE5Yf)hbR@L7g;3nU#Nj3~>J;BVs@kcAc@&oNUDo5N=rt$f5U z&z`bbRg~+G5Lr6Yf>Qy^4tV_8!=r&A0wVK>ILzu3&pAht-^R;;td*m>gX%tJgSzjT z!-t!+S0C`~=}+{lNEVjPbif$^Ri#~iz!#sdAIW{uaxMUll=e{FLpZ?1;dGaz5Q>i| z*LR6>(=tK28C2yFEg-grSKsW_|`)xD`V zt@@s)s2(0VBf!-YPa&m9N{K4g09m#?8z9C=@Q_q-HX_9>QrgCBI9&o89VsRUgZq`K z9dHI9r3l#ynr3%E9b6D`h%`XvNJ-I@==VDyf~5h_WNq!i`96;GU)4FcL4C034&s(^ z-k*2dKF)-V(G-a>604V(4)Co4vk|SlpeXLn2IzKs2zB1gEl~CUL)`YofmKmel5S1v zCE}bXV|&ff)N}Qu_VgWW%gKp2L$aBeZgSxPvjz`uzu#_a5)FI!&^O_czFkl6Jd1x9HAKLFX^3>LshI9}|lF&5Q-I z>?R?+N1o^8`JFeiJGmNf`}h2RQSwH#g>wk<0000bbVXQnWMOn=I%9HWVRU5xGB7bP zEigDOGBZ>#IXW{oIx{paFg7|cFci1t-~a#sC3HntbYx+4WjbwdWNBu305UK!FfA}R lEiyAyFf=+aGdeLiEig7ZFfiDN{cZpN002ovPDHLkV1n<*YmEQ^ literal 0 HcmV?d00001 diff --git a/resources/images/news/jezebel.png b/resources/images/news/jezebel.png new file mode 100644 index 0000000000000000000000000000000000000000..c9d4b2c28c485cdcfad26b1d07bb201ad5d2d631 GIT binary patch literal 233 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf6n3BBRT^Rni_n+Ah2>S z4={E+nQaFWEGuwK2hw1@3^B*n9tLv6JY5_^G|ngg`9GggKOreWBGjNrgn_|EpGi)l z@v0tBg=&dwL`h0wNvc(HQ7VvPFfuSS&^55oH8Kt{u(UEZvobc(H88U>Fc8`P^Z|;7 l-29Zxv`Q2W##W}5RwhOe4f=A^rUNxFc)I$ztaD0e0s!PvIm7?} literal 0 HcmV?d00001 diff --git a/resources/images/news/kotaku.png b/resources/images/news/kotaku.png new file mode 100644 index 0000000000000000000000000000000000000000..320a59c04b2949826648a769e0bef61e296c8fd1 GIT binary patch literal 400 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zK-vS0-A-oPfdtD69Mgd`SU*F|v9*VRoSmL7jv*GOmrnNPYcb$)md|*1^-j;1w09?s zxK}jPU0BdL#do&Vw#j;o2jw^JtDPX*`1-#@M1KiR%6&CQF= zL6hlE%7cB2y|~KH`Av1aP`d8qR){l<7==OoiJS5BYYuyZ0?(Dbq%S0z>J zl6i`6f0^eCM0tfCI@{fSWZORZUO_QmvAUQh^kMk%6Isu7QQFk#UHD zrIoRnm9dGgfti(ofynl!4^TAZ=BH$)RibDxwlcM}GBkr|n7nZhNCShXtDnm{r-UW| DpHY#d literal 0 HcmV?d00001 diff --git a/resources/images/news/lifehacker.png b/resources/images/news/lifehacker.png new file mode 100644 index 0000000000000000000000000000000000000000..4e3f03eb7f233cb9ea94ff98d2f16aa1f478372a GIT binary patch literal 1437 zcmV;O1!DS%P)h87@H>6Q*!6g^LtZxO6c^3O_;$KR_NJkK!T^ zkVi1VguzTP#SjML;u0=F1Tlyp!YLMZ3hDf5Wb4kabk06&ueJ6*M-NU;PCfyc0T>_z zAdz2YHa`a_pG`xBnZ@sHVm2Q%$92wO&QU=YcM-T;M8)&kInJMKxj1WSH}&UdheYPz z1rUjtcMKqK2CsfRC(DCw82I(=?R?K@H#KKZTfD@@cEjb(o~wN~#mE`R^DEe#Kv+(F zxX#)Q-b9B-617BQE;1^hHp9zv>jzp~TvLFhz=?jcFs7Mj2+!)Egiu}tj+@vyqtBuAvyobIMeJ{2&oNrq+ikqQlw`pkV(r0nw zO3qLED|2{k0|sB}@%ygldOzUj-tp?i8P9e*ZhVi|$gZjRF!)$3nFN+lEzBLHvaD2N zHDo%*dvhB%gMByPFou4_%Tv3Rt$NxGKeGi(NFI5iMN2OvaF*?Eu~rzy5wi`OO&u9s z%9os$rBO5sKeyWAd@%(IWtg8+w33YXq4bmvE}6`g3NdYQ@>#;YPh;LEY~>H{vx*7E z&O%npO(^NP((yv(&c&|ieLCrwxxz`dGCyD345~z5S)&$%ra}oN>Iw!@^_YQM>=%-X zK1SGKC%&gDP%$7O2#!t&6uVgj7E4#fyj2BfesdXP6<7#lX*bi{0G68PizzdKW{HxV z<=j}R0gN%5Ff)Ke{7X#h65&!klb~d{#xVnFWwWWnpwSE9_eG!a3tZ*W;Y= z^TjiMdVWgna^oa6B9IJK@<=)fPavmHRR}p>{orX_%{Yt`;M#co=925ffwtXpwris9 z$ud@YVdaV@jOR_I-7uea+YQupL)$bAy~oUOjd6YG3hHgKmPMOoi~3w6MVZ1zSLOHw zQ`>dMZ*Q(RKRv|>hJKt{@{-=LKz!?&DKd;hnb=}e;j3@H{rVRwqpCjgG2^4EDh_ue z@7^DHcyz>f%_EKe^c#5a`1{A70xeQWTG#6#Y28gIIijiSG@B zT`+dm@-(XXz*)XU<{;ParnVH{65<^U{s+}Ut+lO;1~~u#03~!qSaf7zbY(hYa%Ew3 zWdJfTF)%GKI4v?WR4_R@Gd4OiG%YYTIxsL4x8>jf001R)MObuXVRU6WZEs|0W_bWI rFflMKFgPtTGE_1#IyEplH83qOHaajcr({f>00000NkvXXu0mjfoO6cg literal 0 HcmV?d00001 diff --git a/resources/recipes/consumerist.recipe b/resources/recipes/consumerist.recipe new file mode 100644 index 0000000000..3d8056e49d --- /dev/null +++ b/resources/recipes/consumerist.recipe @@ -0,0 +1,53 @@ +__license__ = 'GPL v3' +__copyright__ = '2010, NA' +''' +consumerist.com +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class Consumerist(BasicNewsRecipe): + title = 'Consumerist' + __author__ = 'NA' + description = "Consumerist, Shoppers Bite Back." + publisher = 'consumerist.com' + category = 'news, consumer news, consumer rights' + oldest_article = 2 + max_articles_per_feed = 100 + no_stylesheets = True + encoding = 'utf-8' + use_embedded_content = False + language = 'en' + masthead_url = 'http://consumerist.com/css/images/footer_man.gif' + extra_css = ''' + body{font-family: "Lucida Grande",Helvetica,Arial,sans-serif} + img{margin-bottom: 1em} + h1{font-family :Arial,Helvetica,sans-serif; font-size:x-large} + h2{font-family :Arial,Helvetica,sans-serif; font-size:large} + ''' + conversion_options = { + 'comment' : description + , 'tags' : category + , 'publisher' : publisher + , 'language' : language + } + + remove_attributes = ['width','height'] + #keep_only_tags = [dict(attrs={'class':['', 'category-breadcrumb']}),] + remove_tags_before = dict(name='h2') + + remove_tags = [ + #dict(name='iframe'), + dict(name='div', attrs={'class':['e-comments', 'more-about', 'entry-tags']}), + #dict(name='div', attrs={'id':['IEContainer', 'clickIncludeBox']}), + #dict(name='ul', attrs={'class':'article-tools'}), + #dict(name='ul', attrs={'class':'articleTools'}), + ] + + remove_tags_after = dict(attrs={'class':'e-body'}) + + feeds = [(u'Articles', u'http://consumerist.com/index.xml')] + + def preprocess_html(self, soup): + return self.adeify_images(soup) + diff --git a/resources/recipes/deadspin.recipe b/resources/recipes/deadspin.recipe new file mode 100644 index 0000000000..89e8b2d490 --- /dev/null +++ b/resources/recipes/deadspin.recipe @@ -0,0 +1,44 @@ +__license__ = 'GPL v3' +__copyright__ = '2010, NA' +''' +deadspin.com +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class Deadspin(BasicNewsRecipe): + title = 'Deadspin' + __author__ = 'NA' + description = "Deadspin, Sports News without Access, Favor, or Discretion." + publisher = 'deadspin.com' + category = 'news, sports, meltdowns' + oldest_article = 2 + max_articles_per_feed = 100 + no_stylesheets = True + encoding = 'utf-8' + use_embedded_content = False + language = 'en' + masthead_url = 'http://cache.gawkerassets.com/assets/deadspin.com/img/logo.png' + extra_css = ''' + body{font-family: "Lucida Grande",Helvetica,Arial,sans-serif} + img{margin-bottom: 1em} + h1{font-family :Arial,Helvetica,sans-serif; font-size:large} + ''' + conversion_options = { + 'comment' : description + , 'tags' : category + , 'publisher' : publisher + , 'language' : language + } + + remove_attributes = ['width','height'] + keep_only_tags = [dict(attrs={'class':'content permalink'})] + remove_tags_before = dict(name='h1') + remove_tags = [dict(attrs={'class':'contactinfo'})] + remove_tags_after = dict(attrs={'class':'contactinfo'}) + + feeds = [(u'Articles', u'http://feeds.gawker.com/deadspin/full')] + + def preprocess_html(self, soup): + return self.adeify_images(soup) + diff --git a/resources/recipes/fleshbot.recipe b/resources/recipes/fleshbot.recipe new file mode 100644 index 0000000000..738fc22ecf --- /dev/null +++ b/resources/recipes/fleshbot.recipe @@ -0,0 +1,44 @@ +__license__ = 'GPL v3' +__copyright__ = '2010, NA' +''' +fleshbot.com +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class Fleshbot(BasicNewsRecipe): + title = 'Fleshbot' + __author__ = 'NA' + description = "Fleshbot, Pure Filth." + publisher = 'Fleshbot.com' + category = 'news, sex, sex industry, celebs, nudes, adult, adult toys, sex toys' + oldest_article = 2 + max_articles_per_feed = 100 + no_stylesheets = True + encoding = 'utf-8' + use_embedded_content = False + language = 'en' + masthead_url = 'http://cache.fleshbot.com/assets/base/img/thumbs140x140/fleshbot.com.png' + extra_css = ''' + body{font-family: "Lucida Grande",Helvetica,Arial,sans-serif} + img{margin-bottom: 1em} + h1{font-family :Arial,Helvetica,sans-serif; font-size:x-large} + ''' + conversion_options = { + 'comment' : description + , 'tags' : category + , 'publisher' : publisher + , 'language' : language + } + + remove_attributes = ['width','height'] + keep_only_tags = [dict(attrs={'class':'content permalink'})] + remove_tags_before = dict(name='h1') + remove_tags = [dict(attrs={'class':'contactinfo'})] + remove_tags_after = dict(attrs={'class':'contactinfo'}) + + feeds = [(u'Articles', u'http://feeds.gawker.com/fleshbot/full')] + + def preprocess_html(self, soup): + return self.adeify_images(soup) + diff --git a/resources/recipes/gawker.recipe b/resources/recipes/gawker.recipe new file mode 100644 index 0000000000..8914b9d9a0 --- /dev/null +++ b/resources/recipes/gawker.recipe @@ -0,0 +1,44 @@ +__license__ = 'GPL v3' +__copyright__ = '2010, NA' +''' +gawker.com +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class Gawker(BasicNewsRecipe): + title = 'Gawker' + __author__ = 'NA' + description = "Gawker, Gossip from Manhattan and the Beltway to Hollywood and the Valley." + publisher = 'gawker.com' + category = 'news, gossip' + oldest_article = 2 + max_articles_per_feed = 100 + no_stylesheets = True + encoding = 'utf-8' + use_embedded_content = False + language = 'en' + masthead_url = 'http://cache.gawkerassets.com/assets/gawker.com/img/logo.png' + extra_css = ''' + body{font-family: "Lucida Grande",Helvetica,Arial,sans-serif} + img{margin-bottom: 1em} + h1{font-family :Arial,Helvetica,sans-serif; font-size:large} + ''' + conversion_options = { + 'comment' : description + , 'tags' : category + , 'publisher' : publisher + , 'language' : language + } + + remove_attributes = ['width','height'] + keep_only_tags = [dict(attrs={'class':'content permalink'})] + remove_tags_before = dict(name='h1') + remove_tags = [dict(attrs={'class':'contactinfo'})] + remove_tags_after = dict(attrs={'class':'contactinfo'}) + + feeds = [(u'Articles', u'http://feeds.gawker.com/gawker/full')] + + def preprocess_html(self, soup): + return self.adeify_images(soup) + diff --git a/resources/recipes/io9.recipe b/resources/recipes/io9.recipe new file mode 100644 index 0000000000..0bb5144f9c --- /dev/null +++ b/resources/recipes/io9.recipe @@ -0,0 +1,46 @@ +__license__ = 'GPL v3' +__copyright__ = '2010, NA' +''' +io9.com +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class i09(BasicNewsRecipe): + title = 'io9' + __author__ = 'NA' + description = "io9, We Come From the Future." + publisher = 'io9.com' + category = 'news, science, education' + oldest_article = 2 + max_articles_per_feed = 100 + no_stylesheets = True + encoding = 'utf-8' + use_embedded_content = False + language = 'en' + masthead_url = 'http://cache.gawkerassets.com/assets/io9.com/img/logo.png' + extra_css = ''' + body{font-family: "Lucida Grande",Helvetica,Arial,sans-serif} + img{margin-bottom: 1em} + h1{font-family :Arial,Helvetica,sans-serif; font-size:large} + h2{font-family :Arial,Helvetica,sans-serif; font-size:x-small} + ''' + + conversion_options = { + 'comment' : description + , 'tags' : category + , 'publisher' : publisher + , 'language' : language + } + + remove_attributes = ['width','height'] + keep_only_tags = [dict(attrs={'class':'content permalink'})] + remove_tags_before = dict(name='h1') + remove_tags = [dict(attrs={'class':'contactinfo'})] + remove_tags_after = dict(attrs={'class':'contactinfo'}) + + feeds = [(u'Articles', u'http://feeds.gawker.com/io9/full')] + + def preprocess_html(self, soup): + return self.adeify_images(soup) + diff --git a/resources/recipes/jalopnik.recipe b/resources/recipes/jalopnik.recipe new file mode 100644 index 0000000000..567815322f --- /dev/null +++ b/resources/recipes/jalopnik.recipe @@ -0,0 +1,45 @@ +__license__ = 'GPL v3' +__copyright__ = '2010, NA' +''' +jalopnik.com +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class Jalopnik(BasicNewsRecipe): + title = 'Jalopnik' + __author__ = 'NA' + description = "Jalopnik, Obsessed With The Cult of Cars." + publisher = 'jalopnik.com' + category = 'news, cars, spyshots' + oldest_article = 2 + max_articles_per_feed = 100 + no_stylesheets = True + encoding = 'utf-8' + use_embedded_content = False + language = 'en' + masthead_url = 'http://cache.gawkerassets.com/assets/jalopnik.com/img/logo.png' + extra_css = ''' + body{font-family: "Lucida Grande",Helvetica,Arial,sans-serif} + img{margin-bottom: 1em} + h1{font-family :Arial,Helvetica,sans-serif; font-size:large} + h2{font-family :Arial,Helvetica,sans-serif; font-size:x-small} + ''' + conversion_options = { + 'comment' : description + , 'tags' : category + , 'publisher' : publisher + , 'language' : language + } + + remove_attributes = ['width','height'] + keep_only_tags = [dict(attrs={'class':'content permalink'})] + remove_tags_before = dict(name='h1') + remove_tags = [dict(attrs={'class':'contactinfo'})] + remove_tags_after = dict(attrs={'class':'contactinfo'}) + + feeds = [(u'Articles', u'http://feeds.gawker.com/jalopnik/full')] + + def preprocess_html(self, soup): + return self.adeify_images(soup) + diff --git a/resources/recipes/jezebel.recipe b/resources/recipes/jezebel.recipe new file mode 100644 index 0000000000..e8a983c261 --- /dev/null +++ b/resources/recipes/jezebel.recipe @@ -0,0 +1,45 @@ +__license__ = 'GPL v3' +__copyright__ = '2010, NA' +''' +jezebel.com +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class Jezebel(BasicNewsRecipe): + title = 'Jezebel' + __author__ = 'NA' + description = "Jezebel, Celebrity, Sex, Fashion for Women. Without Airbrushing." + publisher = 'jezebel.com' + category = 'news, cars, spyshots' + oldest_article = 2 + max_articles_per_feed = 100 + no_stylesheets = True + encoding = 'utf-8' + use_embedded_content = False + language = 'en' + masthead_url = 'http://cache.gawkerassets.com/assets/jezebel.com/img/logo.png' + extra_css = ''' + body{font-family: "Lucida Grande",Helvetica,Arial,sans-serif} + img{margin-bottom: 1em} + h1{font-family :Arial,Helvetica,sans-serif; font-size:large} + h2{font-family :Arial,Helvetica,sans-serif; font-size:x-small} + ''' + conversion_options = { + 'comment' : description + , 'tags' : category + , 'publisher' : publisher + , 'language' : language + } + + remove_attributes = ['width','height'] + keep_only_tags = [dict(attrs={'class':'content permalink'})] + remove_tags_before = dict(name='h1') + remove_tags = [dict(attrs={'class':'contactinfo'})] + remove_tags_after = dict(attrs={'class':'contactinfo'}) + + feeds = [(u'Articles', u'http://feeds.gawker.com/jezebel/full')] + + def preprocess_html(self, soup): + return self.adeify_images(soup) + diff --git a/resources/recipes/kotaku.recipe b/resources/recipes/kotaku.recipe new file mode 100644 index 0000000000..87f1ab6578 --- /dev/null +++ b/resources/recipes/kotaku.recipe @@ -0,0 +1,44 @@ +__license__ = 'GPL v3' +__copyright__ = '2010, NA' +''' +kotaku.com +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class Kotaku(BasicNewsRecipe): + title = 'Kotaku' + __author__ = 'NA' + description = "Kotaku, the Gamer's Guide." + publisher = 'kotaku.com' + category = 'news, games, Internet, xbox 360, playstation 3, tips and tricks' + oldest_article = 2 + max_articles_per_feed = 100 + no_stylesheets = True + encoding = 'utf-8' + use_embedded_content = False + language = 'en' + masthead_url = 'http://cache.gawkerassets.com/assets/kotaku.com/img/logo.png' + extra_css = ''' + body{font-family: "Lucida Grande",Helvetica,Arial,sans-serif} + img{margin-bottom: 1em} + h1{font-family :Arial,Helvetica,sans-serif; font-size:large} + ''' + conversion_options = { + 'comment' : description + , 'tags' : category + , 'publisher' : publisher + , 'language' : language + } + + remove_attributes = ['width','height'] + keep_only_tags = [dict(attrs={'class':'content permalink'})] + remove_tags_before = dict(name='h1') + remove_tags = [dict(attrs={'class':'contactinfo'})] + remove_tags_after = dict(attrs={'class':'contactinfo'}) + + feeds = [(u'Articles', u'http://feeds.gawker.com/kotaku/full')] + + def preprocess_html(self, soup): + return self.adeify_images(soup) + diff --git a/resources/recipes/lifehacker.recipe b/resources/recipes/lifehacker.recipe new file mode 100644 index 0000000000..7fede310b1 --- /dev/null +++ b/resources/recipes/lifehacker.recipe @@ -0,0 +1,45 @@ +__license__ = 'GPL v3' +__copyright__ = '2010, NA' +''' +lifehacker.com +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class Lifehacker(BasicNewsRecipe): + title = 'Lifehacker' + __author__ = 'NA' + description = "Computers make us more productive. Yeah, right. Lifehacker recommends the software downloads and web sites that actually save time. Don't live to geek; geek to live." + publisher = 'lifehacker.com' + category = 'news, IT, Internet, gadgets, tips and tricks, howto, diy' + oldest_article = 2 + max_articles_per_feed = 100 + no_stylesheets = True + encoding = 'utf-8' + use_embedded_content = False + language = 'en' + masthead_url = 'http://cache.gawkerassets.com/assets/lifehacker.com/img/logo.png' + extra_css = ''' + body{font-family: "Lucida Grande",Helvetica,Arial,sans-serif} + img{margin-bottom: 1em} + h1{font-family :Arial,Helvetica,sans-serif; font-size:large} + h2{font-family :Arial,Helvetica,sans-serif; font-size:x-small} + ''' + conversion_options = { + 'comment' : description + , 'tags' : category + , 'publisher' : publisher + , 'language' : language + } + + remove_attributes = ['width','height'] + keep_only_tags = [dict(attrs={'class':'content permalink'})] + remove_tags_before = dict(name='h1') + remove_tags = [dict(attrs={'class':'contactinfo'})] + remove_tags_after = dict(attrs={'class':'contactinfo'}) + + feeds = [(u'Articles', u'http://feeds.gawker.com/lifehacker/full')] + + def preprocess_html(self, soup): + return self.adeify_images(soup) +