Posts

Showing posts from November, 2017

Quick and dirty image searches

A quick post about how I tried to find some images with specific dimensions with Google Image Search (GIS in this post). GIS allows to look for defined aspect ratio's. These are broad definitions like 'tall' or 'panoramic'. I was looking for the size of images in pixels. This can be shown over images but isn't an option to finetune searches. So to get what we're after, I had to dive in the raw html of a page with search results. Let's say I search for 'Ramona Flowers'. The resulting page contains plenty of images. Saving the page like one normally would with ctrl+s, 1) doesn't save the images in a useful format, and 2) isn't the html you'd expect. I think Google has a script in place to prevent the most basic scrapers (haven't looked for the answer, I was just working on trying to get what I was looking for). So instead I opened the html source from the page, by pressing ctrl-u (prepending 'view-source:' to the URL is