simple_image_download
simple_image_download copied to clipboard
cannot search for "green apples"
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 ".
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])
```