QianyanTech / Image-Downloader

Download images from Google, Bing, Baidu. 谷歌、百度、必应图片下载.
MIT License
2.15k stars 561 forks source link

Can not download images from Google #15

Closed Qjizhi closed 4 years ago

Qjizhi commented 5 years ago

$ python3 image_downloader.py "stroller on street" -e Google

Scraping From Google Image Search ...

Keywords: stroller on street Number: 100 Face Only: False Safe Mode: False Query URL: https://www.google.com/search?tbm=isch&hl=en&q=stroller%20on%20street&safe=off

== 0 out of 0 crawled images urls will be used.

Finished.

it works with Bing and Baidu, but the search results with this two engines are not satisfied, how can I fix this? Thanks!

sczhengyabin commented 5 years ago

@Qjizhi Not sure why it didn't work. Have you tried the windows packed exe version? Did it work?

zfxxfeng commented 5 years ago

If you can't get the urls,you can uncomment the time.sleep(10) in crawler.py (line 56).

sczhengyabin commented 5 years ago

@Qjizhi It could be the situation that your internet connection is relative slow, so that the page may not load completely when code checking the urls. @zfxxfeng Thanks for pointing that out.