RiddlerQ / simple_image_download

Python script that lets you auto download images from google images using tags
MIT License
145 stars 54 forks source link

AttributeError: 'simple_image_download' object has no attribute 'search_urls' #22

Open skuma307 opened 1 year ago

skuma307 commented 1 year ago

Hi, thanks for this wonderful library. I tried downloading the image and the URLs for those images but I got below mentioned error: `--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) in 1 from simple_image_download import simple_image_download as simp 2 response = simp.simple_image_download() ----> 3 response.search_urls('Circular economy', limit=5) 4 for url in response.cache: 5 print(url)

AttributeError: 'simple_image_download' object has no attribute 'search_urls'`

I am trying on Google Colab and also tried on Windows but it is giving the same error. Can you please help me fix this? Thanks in advanced.

vovod commented 1 year ago

you should try: import simple_image_download.simple_image_download as simp response = simp.Downloader() response.search_urls('Circular economy', limit=5)

Toon-nooT commented 1 year ago

above solution did not work for me: AttributeError: module 'simple_image_download.simple_image_download' has no attribute 'Downloader'

vovod commented 1 year ago

I think simple image downloaded didn't work anymore, you should try bing image download, that worked for me

cobaltautomationdev commented 1 year ago

above solution did not work for me: AttributeError: module 'simple_image_download.simple_image_download' has no attribute 'Downloader'

from simple_image_download import simple_image_download as simp
response = simp.simple_image_download()
response.urls('Circular economy', limit=5)