- I want to download all *.zip files on a page where all relevant links are redirects done by a server script (
- I want the original link to be used to name the files, since the name given by the server is in this case always "download.zip".
Specifically, I want to download the OsmAnd maps from here: http://download.osmand.net/rawindexes/
How do I do it?
What I tried:
I could use
wget to do something similar with the maps for MAPS.ME:
wget -rl1 --accept="mwm" http://direct.mapswithme.com/direct/latest/
But in this case the links were direct, and there was no problem with the file names.
I also tried to use
curl -L, but that's without recursion, and it doesn't seem to work for the kind of redirects that are used on that page.