Programming/Python
wget Python으로 구현하기
좋은날
2010. 7. 6. 20:33
import sys, urllib def reporthook(*a): print a for url in sys.argv[1:]: i = url.rfind('/') file = url[i+1:] print url, "->", file urllib.urlretrieve(url, file, reporthook)