How to download a file from a URL?
Solution 1:
Download File from URL
There are a couple ways to do this. As mentioned, using the developer tools could work (more likely it will give you the url to the file) and right-clicking the link will work. Alternatively there are these options.
In Chrome
- Go to the URL
- Right-click the webpage
- Select Save As...
For verification purposes, here are png, jpg, and mp3 links. Follow them and try these steps. However, in my experience. If you already have a url to a file, opening up Chrome and following these steps is rather tedious so here is an alternative.
In Command Line
- Open your favorite terminal emulator
- type
curl -o myfile.mp3 'www.foo.com/bar.mp3'
- Where
myfile.mp3
is what you want to call the file you're downloading - And
www.foo.com/bar.mp3
is the URL to the file
[Note: This works for Linux and Mac users. If you are unfortunate enough to be a Windows user trying to use the cmd line, use Cmder and this method will work or if you're a purist try this]
Solution 2:
For Powershell, this example works great:
invoke-webrequest -uri http://files.animatedsuperheroes.com/themes/spiderman94.mp3 -outfile "c:\Spiderman94.mp3"
This was confirmed with Win10 x64 1607.
Solution 3:
You can see the files a page loads using Developer Tools. Under the "Sources" tab in Developer Tools you can right-click a file and save it. For example, the webpage http://www.oizo3000.com/flash/projetmpc.swf loads the file "projetmpc.swf".