#wget_cmd.py
#!/usr/bin/python
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)
wget function of python
最新推荐文章于 2024-03-03 11:33:39 发布