How to deflate all images using wget without knowing the file names?

Hello, tell me how to pump all picture format jpg using wget) for Example is there a website vk.com and I know that at vk.com/img/all/ there are several hundred images of the jpg format with different names. So I would like for it to automatically download all of these pictures. Only know the prefixes, these pictures 2017_ and next XS))) Tried to swing, but swings are only a few pictures and unnecessary to me html and folders

wget -r-k-l 7 -p-E -nc https://vk.com/img/all/
wget -r --level=1-A jpg -nd https://vk.com/img/all/
wget -r --level=3 -R-A jpg https://vk.com/img/all/

There may be other ways) please Give ready-made solutions, I "like"
June 10th 19 at 16:19
2 answers
June 10th 19 at 16:21
No way. http/https by itself does not work with the file system, hence to obtain a list of files (their names) in a simple way impossible if it is not provided from the side of vk that there is some function to display a list of available images.
But as far as I know, in vk there is no such function.
vk is for example) Deflate completely from another site. - Vivien_Herman commented on June 10th 19 at 16:24
If the images are on the page javascript then wget should drain them all, or require an individual approach. Most likely the image specified in the styles will not be loaded.

Some sites deliberately 'put a spoke in the wheel', making it harder for such unloading. for example, the image may be formed on the client side, and uploaded to 'your' format or method (e.g. Packed archive).

p.s. relatively universal in the direction of injection of javascript code in a web app that will extract the image and save it to your web server or in local storage of the browser. - jaunita commented on June 10th 19 at 16:27
as already said, in the http Protocol for a missing team of listing a certain directory (for example, in contrast to ftp). accordingly, none of kachlik can't get some sodzherzhimoe "http-directory" and pump out all of.
only one option is to parse all HTML-pages of the site. - Sandra_Kautzer42 commented on June 10th 19 at 16:30
June 10th 19 at 16:23
In your case brute force. But there is no guarantee that spardac don't think this is ddos attack and block your IP nafig.

Find more questions by tags bashDebianWgetUbuntuLinux