simple_image_download icon indicating copy to clipboard operation
simple_image_download copied to clipboard

cannot search for "green apples"

Open ras37srq opened this issue 3 years ago • 1 comments

Code does a split on on strings and creates a separate URL and search for every word. Searching for "green apples" gives a folder with images of "green" and a separate folder of (red) "apples".

You would think it could be solved by quoting, "'green apples'", but that causes the package to create a url to search every character in that phrase -- ', g, r, e, ...

This needs to be fixed so the image search is anything that can be searched in images.google. E.g., " +'green apples' clipart ".

ras37srq avatar Jul 28 '22 21:07 ras37srq

You should add replace(" ", "+") to replace space with + sign in search Query example :

my_downloader = simp.Downloader()
my_downloader.extensions = '.jpg'
my_downloader.search_urls(('What dog is the baddest?').replace(" ", "+"),limit=0, verbose=True)
url = my_downloader.get_urls()
//Prints image url
print(url[0])
```

Erraoudy avatar Aug 09 '22 18:08 Erraoudy