arrrlo / Google-Images-Search

[PYTHON] Search for image using Google Custom Search API and resize & crop afterwards
MIT License
176 stars 34 forks source link

No Images Found when using gimages search only #150

Closed febrifahmi closed 2 years ago

febrifahmi commented 2 years ago

I'm trying to use the command (inside virtual environment) to search common images but it returns none. Here is the screenshot (the result is same for single keyword if I remove the apostrophe):

image

OS: Windows 10 Python version: Python 3.9.2 All Google API Key and Google CSE are already enabled.

arrrlo commented 2 years ago

Hi @febrifahmi

Just tried with my api key and it's working fine:

>> gimages search -q "concrete structure"

GOOGLE IMAGES SEARCH 1.4.3

https://static.designboom.com/wp-content/dbsub/444870/2021-03-25/revolucionenelpatio-6-605c5812015ca.jpg
[image is not downloaded]

My first guess is that you misconfigured your custom search project.

Visit https://cse.google.com/cse/all and in the web form where you create/edit your custom search engine enable "Image search" option and for "Sites to search" option select "Search the entire web but emphasize included sites".

febrifahmi commented 2 years ago

Hi @arrrlo,

Sorry for my misunderstanding. I tried to set CSE as you suggested and finally, it's working fine. Thanks...