3
I need to download several images from a website, where only the page number changes, but the id
of tag img
is always the same.
I wonder if there is any way to create a program that does this download and the page exchange, automatically.
The id is #backgroundImg
. The page ?page=96
, for example. Can in any language or medium.
I made that code, but I still can’t download it.
D:\>FOR %A IN (1,1,96) DO
wget -A.jpg http://www.servidor.com.br/#/edition/T3916843A?page=%Asection=1
I’m using wget
in the prompt command.
What is the problem that this code presents?
– stderr
You are creating a 3kb . html file and when you create more than one, it looks like this: index.html. 1; index.html. 2... None of these files are actually html.
– Riva Junior
I don’t understand why "wget -A.jpg http://www.servor.com.br/#/Edition/T3916843A? page=%Asection=1".. Obviously you won’t catch any image like this.. Did you take this code from some website? There was no other code?
– Daniel Omine
No. This code I made myself. Because it’s so obvious that it won’t catch any image?
– Riva Junior