I'm using the new (in V11) function UrlDownload[]
I have a url I'd like to save to a local file, but the url is missing a (or has the incorrect) filetype extension. So I don't know how to construct the filename properly. Here's an example:
url = "http://t0.gstatic.com/images?q=tbn:ANd9GcRf1EqE2kyW12HSb9gZZ8eTIPqNgVkjFis4GkTTYONIpoQtkIde4zybZ4iAqGlIHQ_pnEX499Oa";
Import@url
URLDownload[url, "~/Downloads/" <> ToString@RandomInteger[1000000]]
I'd like to save it with the proper extension though. Any thoughts?
Also, URLDownload doesn't seem to be multithreaded, this is waaay too slow:
URLSaveAsynchronous
. If the file type appears in the URL or not is immaterial, just append the right file extension to your file name. $\endgroup$