Skip to content

Instantly share code, notes, and snippets.

@tzengyuxio
Created October 12, 2011 16:46
Show Gist options
  • Save tzengyuxio/1281784 to your computer and use it in GitHub Desktop.
Save tzengyuxio/1281784 to your computer and use it in GitHub Desktop.
kekkaishi manga fetcher
import urllib
# http://mh.99770.cc/manhua/5264/
# http://mh.99770.cc/manhua/5264/42671.htm?s=3 (Book 1)
sServer="http://61.164.109.141:99/dm03/"
sFiles="/ok-comic00/j/jjs/vol_01/99770_001DD.jpg|/ok-comic00/j/jjs/vol_01/99770_002en.jpg|/ok-comic00/j/jjs/vol_01/99770_003zb.jpg|/ok-comic00/j/jjs/vol_01/99770_004va.jpg|/ok-comic00/j/jjs/vol_01/99770_005yQ.jpg|/ok-comic00/j/jjs/vol_01/99770_006cQ.jpg|/ok-comic00/j/jjs/vol_01/99770_007OI.jpg|/ok-comic00/j/jjs/vol_01/99770_008bY.jpg|/ok-comic00/j/jjs/vol_01/99770_009ue.jpg|/ok-comic00/j/jjs/vol_01/99770_010pv.jpg|/ok-comic00/j/jjs/vol_01/99770_011rC.jpg|/ok-comic00/j/jjs/vol_01/99770_012TU.jpg|/ok-comic00/j/jjs/vol_01/99770_013qr.jpg|/ok-comic00/j/jjs/vol_01/99770_014BY.jpg|/ok-comic00/j/jjs/vol_01/99770_015fI.jpg|/ok-comic00/j/jjs/vol_01/99770_016YE.jpg|/ok-comic00/j/jjs/vol_01/99770_017Le.jpg|/ok-comic00/j/jjs/vol_01/99770_018mb.jpg|/ok-comic00/j/jjs/vol_01/99770_019HC.jpg|/ok-comic00/j/jjs/vol_01/99770_020DB.jpg|/ok-comic00/j/jjs/vol_01/99770_021te.jpg|/ok-comic00/j/jjs/vol_01/99770_022Xe.jpg|/ok-comic00/j/jjs/vol_01/99770_023Jk.jpg|/ok-comic00/j/jjs/vol_01/99770_024Vl.jpg|/ok-comic00/j/jjs/vol_01/99770_025ps.jpg|/ok-comic00/j/jjs/vol_01/99770_026jI.jpg|/ok-comic00/j/jjs/vol_01/99770_027mR.jpg|/ok-comic00/j/jjs/vol_01/99770_028Bx.jpg|/ok-comic00/j/jjs/vol_01/99770_029lG.jpg|/ok-comic00/j/jjs/vol_01/99770_030wn.jpg|/ok-comic00/j/jjs/vol_01/99770_031BL.jpg|/ok-comic00/j/jjs/vol_01/99770_032TS.jpg|/ok-comic00/j/jjs/vol_01/99770_033Gs.jpg|/ok-comic00/j/jjs/vol_01/99770_034Tq.jpg|/ok-comic00/j/jjs/vol_01/99770_035CQ.jpg|/ok-comic00/j/jjs/vol_01/99770_036zQ.jpg|/ok-comic00/j/jjs/vol_01/99770_037CG.jpg|/ok-comic00/j/jjs/vol_01/99770_038gU.jpg|/ok-comic00/j/jjs/vol_01/99770_039SM.jpg|/ok-comic00/j/jjs/vol_01/99770_040eb.jpg|/ok-comic00/j/jjs/vol_01/99770_041lH.jpg|/ok-comic00/j/jjs/vol_01/99770_042fl.jpg|/ok-comic00/j/jjs/vol_01/99770_043ht.jpg|/ok-comic00/j/jjs/vol_01/99770_044Vk.jpg|/ok-comic00/j/jjs/vol_01/99770_045FH.jpg|/ok-comic00/j/jjs/vol_01/99770_046Qa.jpg|/ok-comic00/j/jjs/vol_01/99770_047Vy.jpg|/ok-comic00/j/jjs/vol_01/99770_048Ph.jpg|/ok-comic00/j/jjs/vol_01/99770_049CV.jpg|/ok-comic00/j/jjs/vol_01/99770_050PF.jpg|/ok-comic00/j/jjs/vol_01/99770_051kt.jpg|/ok-comic00/j/jjs/vol_01/99770_052TR.jpg|/ok-comic00/j/jjs/vol_01/99770_053WH.jpg|/ok-comic00/j/jjs/vol_01/99770_054AI.jpg|/ok-comic00/j/jjs/vol_01/99770_055Zm.jpg|/ok-comic00/j/jjs/vol_01/99770_056lB.jpg|/ok-comic00/j/jjs/vol_01/99770_057FI.jpg|/ok-comic00/j/jjs/vol_01/99770_058zY.jpg|/ok-comic00/j/jjs/vol_01/99770_059oh.jpg|/ok-comic00/j/jjs/vol_01/99770_060Rz.jpg|/ok-comic00/j/jjs/vol_01/99770_061BW.jpg|/ok-comic00/j/jjs/vol_01/99770_062Xc.jpg|/ok-comic00/j/jjs/vol_01/99770_063qA.jpg|/ok-comic00/j/jjs/vol_01/99770_064Vj.jpg|/ok-comic00/j/jjs/vol_01/99770_065XJ.jpg|/ok-comic00/j/jjs/vol_01/99770_066kH.jpg|/ok-comic00/j/jjs/vol_01/99770_067sU.jpg|/ok-comic00/j/jjs/vol_01/99770_068CT.jpg|/ok-comic00/j/jjs/vol_01/99770_069FJ.jpg|/ok-comic00/j/jjs/vol_01/99770_070Jj.jpg|/ok-comic00/j/jjs/vol_01/99770_071uo.jpg|/ok-comic00/j/jjs/vol_01/99770_072GD.jpg|/ok-comic00/j/jjs/vol_01/99770_073bw.jpg|/ok-comic00/j/jjs/vol_01/99770_074VN.jpg|/ok-comic00/j/jjs/vol_01/99770_075JV.jpg|/ok-comic00/j/jjs/vol_01/99770_076La.jpg|/ok-comic00/j/jjs/vol_01/99770_077vj.jpg|/ok-comic00/j/jjs/vol_01/99770_078sQ.jpg|/ok-comic00/j/jjs/vol_01/99770_079yb.jpg|/ok-comic00/j/jjs/vol_01/99770_080dK.jpg|/ok-comic00/j/jjs/vol_01/99770_081fk.jpg|/ok-comic00/j/jjs/vol_01/99770_082si.jpg|/ok-comic00/j/jjs/vol_01/99770_083NX.jpg|/ok-comic00/j/jjs/vol_01/99770_084yx.jpg|/ok-comic00/j/jjs/vol_01/99770_085CZ.jpg|/ok-comic00/j/jjs/vol_01/99770_086ho.jpg|/ok-comic00/j/jjs/vol_01/99770_087Sf.jpg|/ok-comic00/j/jjs/vol_01/99770_088eu.jpg|/ok-comic00/j/jjs/vol_01/99770_089lo.jpg|/ok-comic00/j/jjs/vol_01/99770_090gF.jpg|/ok-comic00/j/jjs/vol_01/99770_091tm.jpg|/ok-comic00/j/jjs/vol_01/99770_092WE.jpg|/ok-comic00/j/jjs/vol_01/99770_093Hb.jpg|/ok-comic00/j/jjs/vol_01/99770_094EI.jpg|/ok-comic00/j/jjs/vol_01/99770_095WT.jpg|/ok-comic00/j/jjs/vol_01/99770_096bo.jpg|/ok-comic00/j/jjs/vol_01/99770_097OO.jpg|/ok-comic00/j/jjs/vol_01/99770_098ck.jpg|/ok-comic00/j/jjs/vol_01/99770_099xZ.jpg|/ok-comic00/j/jjs/vol_01/99770_100uZ.jpg|/ok-comic00/j/jjs/vol_01/99770_101xP.jpg|/ok-comic00/j/jjs/vol_01/99770_102Oo.jpg|/ok-comic00/j/jjs/vol_01/99770_103zt.jpg|/ok-comic00/j/jjs/vol_01/99770_104Mw.jpg|/ok-comic00/j/jjs/vol_01/99770_105SC.jpg|/ok-comic00/j/jjs/vol_01/99770_106NT.jpg|/ok-comic00/j/jjs/vol_01/99770_107CN.jpg|/ok-comic00/j/jjs/vol_01/99770_108et.jpg|/ok-comic00/j/jjs/vol_01/99770_109ac.jpg|/ok-comic00/j/jjs/vol_01/99770_110lJ.jpg|/ok-comic00/j/jjs/vol_01/99770_111Eh.jpg|/ok-comic00/j/jjs/vol_01/99770_112jQ.jpg|/ok-comic00/j/jjs/vol_01/99770_113vP.jpg|/ok-comic00/j/jjs/vol_01/99770_114XM.jpg|/ok-comic00/j/jjs/vol_01/99770_115fa.jpg|/ok-comic00/j/jjs/vol_01/99770_116bZ.jpg|/ok-comic00/j/jjs/vol_01/99770_117fQ.jpg|/ok-comic00/j/jjs/vol_01/99770_118Xe.jpg|/ok-comic00/j/jjs/vol_01/99770_119Tu.jpg|/ok-comic00/j/jjs/vol_01/99770_120tJ.jpg|/ok-comic00/j/jjs/vol_01/99770_121AD.jpg|/ok-comic00/j/jjs/vol_01/99770_122iH.jpg|/ok-comic00/j/jjs/vol_01/99770_123kO.jpg|/ok-comic00/j/jjs/vol_01/99770_124mT.jpg|/ok-comic00/j/jjs/vol_01/99770_125Id.jpg|/ok-comic00/j/jjs/vol_01/99770_126TK.jpg|/ok-comic00/j/jjs/vol_01/99770_127Yi.jpg|/ok-comic00/j/jjs/vol_01/99770_128qq.jpg|/ok-comic00/j/jjs/vol_01/99770_129dd.jpg|/ok-comic00/j/jjs/vol_01/99770_130sA.jpg|/ok-comic00/j/jjs/vol_01/99770_131Oq.jpg|/ok-comic00/j/jjs/vol_01/99770_132Jp.jpg|/ok-comic00/j/jjs/vol_01/99770_133mE.jpg|/ok-comic00/j/jjs/vol_01/99770_134QE.jpg|/ok-comic00/j/jjs/vol_01/99770_135Cw.jpg|/ok-comic00/j/jjs/vol_01/99770_136OL.jpg|/ok-comic00/j/jjs/vol_01/99770_137VF.jpg|/ok-comic00/j/jjs/vol_01/99770_138pv.jpg|/ok-comic00/j/jjs/vol_01/99770_139rD.jpg|/ok-comic00/j/jjs/vol_01/99770_140UV.jpg|/ok-comic00/j/jjs/vol_01/99770_141qs.jpg|/ok-comic00/j/jjs/vol_01/99770_142by.jpg|/ok-comic00/j/jjs/vol_01/99770_143Sw.jpg|/ok-comic00/j/jjs/vol_01/99770_144Ls.jpg|/ok-comic00/j/jjs/vol_01/99770_145zS.jpg|/ok-comic00/j/jjs/vol_01/99770_146bQ.jpg|/ok-comic00/j/jjs/vol_01/99770_147NI.jpg|/ok-comic00/j/jjs/vol_01/99770_148KI.jpg|/ok-comic00/j/jjs/vol_01/99770_149Ny.jpg|/ok-comic00/j/jjs/vol_01/99770_150el.jpg|/ok-comic00/j/jjs/vol_01/99770_151Qr.jpg|/ok-comic00/j/jjs/vol_01/99770_152BR.jpg|/ok-comic00/j/jjs/vol_01/99770_153WY.jpg|/ok-comic00/j/jjs/vol_01/99770_154Qp.jpg|/ok-comic00/j/jjs/vol_01/99770_155rW.jpg|/ok-comic00/j/jjs/vol_01/99770_156tp.jpg|/ok-comic00/j/jjs/vol_01/99770_157dy.jpg|/ok-comic00/j/jjs/vol_01/99770_158pg.jpg|/ok-comic00/j/jjs/vol_01/99770_159Td.jpg|/ok-comic00/j/jjs/vol_01/99770_160ML.jpg|/ok-comic00/j/jjs/vol_01/99770_161Am.jpg|/ok-comic00/j/jjs/vol_01/99770_162Nj.jpg|/ok-comic00/j/jjs/vol_01/99770_163jx.jpg|/ok-comic00/j/jjs/vol_01/99770_164EV.jpg|/ok-comic00/j/jjs/vol_01/99770_165HL.jpg|/ok-comic00/j/jjs/vol_01/99770_166ma.jpg|/ok-comic00/j/jjs/vol_01/99770_167xr.jpg|/ok-comic00/j/jjs/vol_01/99770_168JG.jpg|/ok-comic00/j/jjs/vol_01/99770_169Qm.jpg|/ok-comic00/j/jjs/vol_01/99770_170LR.jpg|/ok-comic00/j/jjs/vol_01/99770_171my.jpg|/ok-comic00/j/jjs/vol_01/99770_172BQ.jpg|/ok-comic00/j/jjs/vol_01/99770_173mn.jpg|/ok-comic00/j/jjs/vol_01/99770_174ku.jpg|/ok-comic00/j/jjs/vol_01/99770_175Or.jpg|/ok-comic00/j/jjs/vol_01/99770_176Ha.jpg|/ok-comic00/j/jjs/vol_01/99770_177uN.jpg|/ok-comic00/j/jjs/vol_01/99770_178hW.jpg|/ok-comic00/j/jjs/vol_01/99770_179CL.jpg|/ok-comic00/j/jjs/vol_01/99770_180zx.jpg|/ok-comic00/j/jjs/vol_01/99770_181Do.jpg|/ok-comic00/j/jjs/vol_01/99770_182ho.jpg|/ok-comic00/j/jjs/vol_01/99770_183rE.jpg|/ok-comic00/j/jjs/vol_01/99770_184EV.jpg|/ok-comic00/j/jjs/vol_01/99770_185LO.jpg|/ok-comic00/j/jjs/vol_01/99770_186Gf.jpg|/ok-comic00/j/jjs/vol_01/99770_187TM.jpg|/ok-comic00/j/jjs/vol_01/99770_188we.jpg|/ok-comic00/j/jjs/vol_01/99770_189Ga.jpg|/ok-comic00/j/jjs/vol_01/99770_190DI.jpg|/ok-comic00/j/jjs/vol_01/99770_191IT.jpg"
# make sFiles
files=sFiles.split('|')
for file in files:
url=sServer+file
path="./"+file[-9:-6]+file[-4:]
data=urllib.urlretrieve(url,path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment