google-images-download
google-images-download copied to clipboard
chromedriver error on passing json file with limit >100
I have installed google-chrome and chromedriver both version 76 and selenium and placed them in /usr/bin directory and 'which' commnad for each application is giving me same path . If I run python google_images_download.py -k "James Anderson" -sk 'cricketer' -l 1000 --chromedriver /usr/bin/chromedriver It runs fine But if I place the individual in json file with limit <100 , it still runs fine but for limit>100 I get the error Evaluating... 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: 'NoneType' object has no attribute 'rfind') Please help me
I am having this same error even after downloading chromedriver
using brew (MacOS) and pointing to the location in my system (using which chromedriver
to find the location).
EDIT
There is a very fast popup error message that says "Do you want the application "Python.app" to accept incoming network connections?" and says to allow it to pass through the Firewall. I followed these instructions to give Python permission, but it still does not work. I have even added the chromedriver
executable to the working directory with no luck.
What I would suggest is manually install the application using CLI. Then, print out the exception (in google_images_download.py) to unravel its true nature. For example, the exception in my case was:
Message: session not created: This version of ChromeDriver only supports Chrome version 76
Following which, updating Google Chrome solved this issue.