For a MachineLearning project I need to form a training set using images taken from the web page containing lots of them. Like, for example this one. It would be very convenient, if all the images from this site could be downloaded and transformed into a list of images, such that I could later simply delete those I do not like. Then it is easy to transform it into a training set.

• Seen this? – J. M. is away Nov 19 '15 at 9:30
• @ J. M. Thank you for the reference, but you did not understand my question. It is not "how to import a page". It is about "how to transform multiple images containing in the page into a list of images" – Alexei Boulbitch Nov 19 '15 at 9:46
• Well, you linked to Google Image Search as an example; I merely pointed out that related thread that involves extracting the images returned by Google Image Search. – J. M. is away Nov 19 '15 at 10:08
• Import seems to work for me - Import["en.wikipedia.org/wiki/Mathematica", "Images"] is this what you are looking for ? – Lotus Nov 19 '15 at 11:28

I wrote this in the comment, but the code did not come out properly formatted. So here it is again:

Import["https://en.wikipedia.org/wiki/Mathematica", "Images"]


• This works to an extent with a Google image search, like in OP's query. Import["http://images.google.com/search?tbm=isch&q=baby+elephant", "Images"] returns a list of the first 20 images, in thumbnail size. – Jason B. Nov 19 '15 at 11:59
• @Lotus Thank you, it works, though not as I expect. Namely, it, indeed, imports the images, but only a small part of them. Have you ideas of how to import them all? – Alexei Boulbitch Nov 19 '15 at 12:42
• @AlexeiBoulbitch The 20 images you get are the ones from page 1. – Karsten 7. Nov 19 '15 at 13:12
• @ Karsten 7 How can I get the images from other pages then? You see, to train the machine I need lots of images. Impossible to pick them up by hand. – Alexei Boulbitch Nov 19 '15 at 13:16
• I'd presume google detects the request is not from a browser and serves up a limited number. I realize its not elegant, but you can go to google images in a browser and save page as to get all the images (~400) dumped to a folder, then import the files. Of course they are thumbnails. You'd need to navigate each link to get the full size images. – george2079 Nov 19 '15 at 17:38