It looks like you're using an Ad Blocker.
Please white-list or disable AboveTopSecret.com in your ad-blocking tool.
Thank you.
Some features of ATS will be disabled while you continue to use an ad-blocker.
#!/bin/bash
CNT=0
URL="http://naa12.naa.gov.au/NAAMedia/ShowImage.asp?B=3083715&S="
while [ $CNT -lt 211 ]
do
CNT=$(( $CNT+1 ))
wget -O "image-$[CNT].jpg" $[URL]$CNT
done
Originally posted by Kr0nZ
if your on linux, or have access to a linux box, this can be done very easily with only a few lines of bash and wget magic.
Originally posted by ArMaP
In cases like this I usually make a HTML page with the list of the images I want to download (I usually use Excel to create the list, as it allows us to write the first element of a sequence and then create the whole sequence with as many elements as we want) and the I use FreeDownloadManager to download all images on that page.
The resulting page is something like this.
Originally posted by ArMaP
To me, it looks like the wildcard in WinHTTrack works only for what type of link or resource it should follow/download from the pages it is looking at. As in this case the pages do not really exist, they just return an image, WinHTTrack doesn't have anything to work with.
Originally posted by Watchfull
Try going to this page, and log in as a guest naa12.naa.gov.au...
Then use naa12.naa.gov.au... as your starter.
This resource is a valuable aid httrack help
set cnt=1
set end=211
set url=http://naa12.naa.gov.au/NAAMedia/ShowImage.asp?B=3083715^&S=
:repeat
echo %cnt%
wget -O "C:\tmp\images\image-%cnt%.jpg" "%url%%cnt%"
set /a cnt=%cnt%+1
if %cnt% GTR %end% goto close
goto repeat
:close
Originally posted by ArMaP
Using Kr0nZ's idea, and knowing that most Linux useful programs have a Windows version, I went looking for a Windows version of wget and found Wget for Windows.
I tested it on Windows 8 and it worked, in 10 minutes I had all the files on my computer.
Originally posted by IsaacKoi
(Or do you mean you downloaded the single sample file mentioned in the OP in 10 minutes?)
Originally posted by ArMaP
Here's the code for the batch file:
@echo off
:beginning
cls
set cnt=1
set /p url= What is the base URL (i.e. before the number that changes)?
set /p end= How many pages are in the relevant file?
:downloadloop
echo %cnt%
wget64 -O "C:Downloadswgetimagesimage-%cnt%.jpg" "%url%%cnt%"
set /a cnt=%cnt%+1
if %cnt% GTR %end% goto finishquestion
goto downloadloop
:end
:finishquestion
set /p finished= Have you finished downloading (yes/no)?
If "%finished%" == "no" goto beginning
:close
Originally posted by IsaacKoi
Mmm. I wonder if there is an easy way to have the batch file make a new sub-directory for each new sequence of URLs? I don't think it is possible to just use the mkdir and the base URL variable, since the base URL variable has various characters that can't be used in a file (with various colons, slashes etc).
@echo off
:beginning
cls
set cnt=1
set /p url= What is the base URL (i.e. before the number that changes)?
set /p end= How many pages are in the relevant file?
set /p folder= Name of the folder where you want to save the images?
md %folder%
:downloadloop
echo %cnt%
wget64 -O "%folder%\image-%cnt%.jpg" "%url%%cnt%"
set /a cnt=%cnt%+1
if %cnt% GTR %end% goto finishquestion
goto downloadloop
:end
:finishquestion
set /p finished= Have you finished downloading (yes/no)?
If "%finished%" == "no" goto beginning
:close
Originally posted by ArMaP
You can also ask for that, along with URL, right?
Not the most elegant solution, but it's the quickest.
Originally posted by Kr0nZ
If you want you could also make a python, or perl script, to do it, then it would need hardly any user input. You would just need to post a list of barcodes on something like pastebin.
If you want to do it that way I could throw something together for you.