>> Edit article
이름
제목
패스워드
Hi all. I've just got rid of Korean input option in Win2k. sorry -_-; In my rest time, I've made cartoon script that downloading fairly good cartoon automatically. I've used to python that is powerful script language. It'll be running under Win2k/Linux. I think there are many incorrect sentences T.T ---------------------------------------------------------- cartoon.py ---------------------------------------------------------- import os import urllib import time current_dir = os.getcwd() + '' cartoon_url = [('http://cartoon.stoo.com/simin/data/% ssimin_1.jpg','jpg'), ('http://cartoon.stoo.com/arirang/data/% sarirang.jpg','jpg'), ('http://cartoon.stoo.com/wonderful/data/% sworld_1.jpg','jpg'), ('http://cartoon.stoo.com/melang/data/% smelang_1.jpg','jpg'), ('http://cartoon.stoo.com/gaepae/data/% sgaepae.jpg','jpg'), ('http://cartoon.stoo.com/choong/data/% schoong.jpg','jpg'), ('http://cartoon.stoo.com/yasa/data/%syasa.jpg','jpg'), ('http://cartoon.stoo.com/movie/data/% smovie.jpg','jpg'), ('http://www2.hankooki.com/entertain/cartoon/img/03/% s03_0.jpg','jpg'), ('http://www2.hankooki.com/entertain/cartoon/img/07/% s07_0.jpg','jpg'), ('http://www2.hankooki.com/entertain/cartoon/img/02/% s02_0.jpg','jpg'), ('http://www2.hankooki.com/entertain/cartoon/img/04/% s04_0.jpg','jpg'), ('http://www2.hankooki.com/entertain/cartoon/img/11/% s11_0.jpg','jpg'), ('http://www2.hankooki.com/entertain/cartoon/img/05/% s05_0.jpg','jpg'), ('http://www2.hankooki.com/entertain/cartoon/img/09/% s09_0.jpg','jpg'), ('http://www2.hankooki.com/entertain/cartoon/img/06/% s06_0.jpg','jpg'), ('http://manhwa.sportschosun.com/enter/cartoon/tazza/image_cartoon/% sc.gif','gif'), ('http://manhwa.sportschosun.com/enter/cartoon/zombi/image_cartoon/% sk.gif','gif'), ('http://manhwa.sportschosun.com/enter/cartoon/good/image_cartoon/% sa.gif','gif'), ('http://manhwa.sportschosun.com/enter/cartoon/henggarae/image_cartoon/ %se.gif','gif'), ('http://manhwa.sportschosun.com/enter/cartoon/fist/image_cartoon/% sj.gif','gif')] currtime = time.strftime('%Y%m%d') count = 0 for (url,ext) in cartoon_url: web = urllib.urlopen(url % currtime) file = open('cartoon'+str(count)+'.'+ext,'wb') print 'downloading.. %s' % (url % currtime) file.write(web.read()) count += 1 ------------------------------------------------------------------- python cartoon.py -------------------------------------------------------------------
Copyleft
1999-2026 by
JSBoard Open Project
Theme Designed by
IDOO
All right reserved