hardikvasa / google-images-download

Python Script to download hundreds of images from 'Google Images'. It is a ready-to-run code!
MIT License
8.53k stars 2.1k forks source link

about use similar_images #133

Open smallevil opened 5 years ago

smallevil commented 5 years ago

glClient = google_images_download.googleimagesdownload() arguments = {'similar_images':'http://www.bosidata.com/resource/images/201605/201605310947574t5l_o.png', 'chromedriver':'/root/chromedriver', 'metadata':True, 'limit':10} absolute_image_paths = glClient.download(arguments) print(absolute_image_paths)

The above is the code I used, but after searching out, it is different from the results found in the browsing. After searching with this code, the results are all products, not the corresponding image of the specified image. Did I use the wrong parameters?

hardikvasa commented 5 years ago

@smallevil thanks for reporting this. For now, this is by design. When you do a reverse image search on Google with this URL, Google matches this image to the text 925 sterling silver earrings korean version with. The algorithm then does a search with that text and returns images.

I will try to modify the behavior for the code to consider visually similar images instead of the closest keyphrase match. Considering this as a feature request for now.

smallevil commented 5 years ago

Hello, Will this feature still do?

omar-araboghli commented 5 years ago

@hardikvasa any new information? Thanks in advance.

th-ink commented 5 years ago

bump on the feature request.

smallevil commented 4 years ago

Hi, Has this feature been implemented? I just tried it, it seems that it still doesn't work. Will this feature not be added later?