learning to lead a life of awareness.
import sys, urllibdef reporthook(*a): print afor url in sys.argv[1:]: i = url.rfind('/') file = url[i+1:] print url, "->", file urllib.urlretrieve(url, file, reporthook)
Very useful, I needed exactly this to make a cgi script.
Note: Only a member of this blog may post a comment.
Very useful, I needed exactly this to make a cgi script.
ReplyDelete