I have got a PHP image gallery, which has about 20000 photo files. I want to backup the images on my own server, but here is my problem with the url;
http://photos.blabla.net/photo.php?g=XX&p=YY
XX is gallery number, and YY is photo number. The photos can’t be accessed with a wrong gallery number provided. So I want to create a batch download, eg.;
http://photos.blabla.net/photo.php?g=[1:2000]&p=[1:20000]
How can I accomplish this with wget or curl or any other way in a shell account. Or even any Windows workaround will be appreciated.
Thanks a lot.
One can not accomplish this with
wgetalone.Running it as a subprocess in a couple lines of Python does the trick (in theory):