google-images-download
google-images-download copied to clipboard
hangs on 'Evaluating' when using selenium/chromedriver to download >100 images
the script works fine when downloading less than 100 images. however when i try to download more than 100 it hangs on 'Evaluating'. i have installed the latest version of google-images-download and the most recent chromedriver. i am running ubuntu 16.04 when i interrupt with ^C, here is the output:
googleimagesdownload -k happy -o happy -l 200 -cd "/usr/bin/chromedriver"
Item no.: 1 --> Item name = happy Evaluating... ^CTraceback (most recent call last): File "/home/dan/Dropbox/tech/fastai/dan_fastai/venv-fastai/lib/python3.5/site-packages/urllib3/connectionpool.py", line 377, in _make_request httplib_response = conn.getresponse(buffering=True) TypeError: getresponse() got an unexpected keyword argument 'buffering'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/dan/Dropbox/tech/fastai/dan_fastai/venv-fastai/bin/googleimagesdownload", line 11, in
apologies. the problem here was using the wrong version of chromedriver for my version of chrome. i have downgraded chromedriver and everything now works as expected.
hi could you help me with the similar problem? i have download the correct version of chromedriver, but the script can not download anything when the parameter "-l" more than 100.
`googleimagesdownload --keywords "star" -l 101 --chromedriver "/home/yyy/Downloads/chromedriver"
Item no.: 1 --> Item name = star Evaluating... Getting you a lot of images. This may take a few moments... Reached end of Page. Starting Download...
Unfortunately all 101 could not be downloaded because some images were not downloadable. 0 is all we got for this search filter!
Errors: 0
Everything downloaded! Total time taken: 146.7971887588501 Seconds`
apologies. the problem here was using the wrong version of chromedriver for my version of chrome. i have downgraded chromedriver and everything now works as expected.
@danmcquillan Hello, can you tell me which chromedriver i should use? my chrome version is 73.0.3683.75 (Official Build) (64-bit), and the chromedriver is 73.0.3683.68(not found 75), but still meet the hang on problem~thank you!
@RobertAuditore i've met same problem when i try to download more than 100 pics, have you solved it now?
@RobertAuditore i've met same problem when i try to download more than 100 pics, have you solved it now?
No, I haven't solve it yet. I choose another repo
@RobertAuditore i've met same problem when i try to download more than 100 pics, have you solved it now?
No, I haven't solve it yet. I choose another repo
Which repo? could you tell me? Please.
@RobertAuditore i've met same problem when i try to download more than 100 pics, have you solved it now?
No, I haven't solve it yet. I choose another repo
Which repo? could you tell me? Please.
I forgot the specific repo, but it's one of my collections here :+1: https://github.com/AddASecond/AnnoRepo in the scrapy/crawl part
Thanks, got google_images_download working on my Macbook Pro running Mojave (see instructions below):
I was getting the following message when trying to download more than 100 images: Looks like we cannot locate the path the 'chromedriver' (use the '--chromedriver' argument to specify the path to the executable.) or google chrome browser is not installed on your machine (exception: expected str, bytes or os.PathLike object, not NoneType)
-
I downloaded chromedriver from here: https://chromedriver.chromium.org/downloads I chose Version 79 to match my installed version of Chrome. (See menu: Chrome->About Google Chrome)
-
I unzipped chromedriver_mac64.zip in my Downloads folder
-
I moved chromedriver to /usr/local/bin/chromedriver (You may or may not need to use sudo, depending on whether you own /usr/local.) $ sudo mv chromedriver /usr/local/bin
-
In my python script, I added another entry in the arguments dict passed to google_images_download.googleimagesdownload(): { ... "chromedriver": "/usr/local/bin/chromedriver" }
Perhaps the google-images-download "Installation" page should be updated with chromedriver information. Or, perhaps a note, "If you plan to download more than 100 images, you will need to install chromedriver (see Troubleshooting page)."
