Lines Matching refs:url
104 def download(url, filename = None):
108 src = urlopen(url)
110 printIOError(e, "Can't open url " + url)
140 def download_paths(search, filename, url):
157 # command line url is a fallback, so it's last
158 if url != None and url not in urls:
159 urls.append(url)
164 print "Usage: %s [-f|--file (file)] [-l|--link] [-h|--hash (hash)] [-s|--search (search-dir)] --url (url)" % (sys.argv[0].split('/')[-1])
181 ["file=", "link", "hash=", "search=", "url="])
195 elif opt in [ "-u", "--url" ]:
203 for url in download_paths(search_list, file_arg, url_arg):
204 print "Source %s..." % url,
206 scheme, path = splittype(url)
224 name = download(url, file_arg)