>> Read No. 3230 article  
cartoon download script

등록 2003-01-07 22:11:00     조회 5
이름 chaeso    

		Hi all.
I've just got rid of Korean input option in Win2k. sorry emoticon;
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 emoticon
 ----------------------------------------------------------
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/% smovi
e.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
-------------------------------------------------------------------
이름
암호


>> 관련글
3230 cartoon download script  chaeso  2003.01.07  ....
  답장 RE: [RPM/SRPM] gtoonz !  동쪽하늘  2003.01.09  ....
  목록보기 윗글 아랫글
글쓰기
답장쓰기 수정 삭제
정규표현식 [ 상세 검색 ]
페이지로딩: [ 0.35 초 ] 작업시간: [ 0.06 초 ]

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved
[TOP]

적수네 동네
+
| 적수네 동네
| 공부방
| 리눅스 잡지 서고
| LSN 소스
| 링크 모음
+---+
게시판
+
| 떠들어보세!
| 질문과 답변
| 새소식과 정보
| 1원짜리 팁?
| 대화방
+---+
칼럼?
+
| 세하 훔쳐보기
| Welcome2nite
| 혜진의 염장판
+---+
리눅스 상표권
+
| 반대 서명란
| 토론 게시판
+---+
GNU
+
| GNU 선언문
| GNU GPL
| GNU 미러 목록
+---+
프로젝트?
+
| 리눅스카운터
| RC5DES
| 실질헌법 제작
+---+
커널 소식
+
| 안정 버젼: 2.4.14
+---+
테마 선택
+
LSN 방송국?
+
| OFF AIR
+---+
회원
+
| 로그인
+---+
[ 적수네 동네 ] [ 리눅스 상표권 독점 반대 ] [ 한글 리눅스 문서 프로젝트 ] [ KrLine ] [ 사랑넷 ] [ Valid HTML 4.0! ] [ SlashDot ] [ Freshmeat ]
Copyleft (C) 1998-2001 Byeong-Chan Kim . License
TIME: 1791021973
System by WYZsoft, HDD by I.O.Linux, Mizi Research, Embryo, WOWLINUX, Domain by SarangNet, Network by KrLine.