ultralytics / google-images-download

Google/Bing Images Web Downloader
https://ultralytics.com
GNU Affero General Public License v3.0
294 stars 84 forks source link

selenium.common.exceptions.InvalidArgumentException: Message: invalid argument #5

Open 365gg opened 4 years ago

365gg commented 4 years ago

_DevTools listening on ws://127.0.0.1:53852/devtools/browser/bc25e6c0-e37c-4083-9092-7b062cd14cf8 Traceback (most recent call last): File "bing_scraper.py", line 936, in main() File "bing_scraper.py", line 922, in main paths, errors = response.download(arguments) # wrapping response in a variable just for consistency File "bing_scraper.py", line 759, in download paths, errors = self.download_executor(arguments) File "bing_scraper.py", line 871, in download_executor raw_html = self.download_extended_page(url, arguments['chromedriver']) File "bing_scraper.py", line 206, in download_extended_page browser.get(url) File "D:\Program Files\Anaconda3\envs\python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 333, in get self.execute(Command.GET, {'url': url}) File "D:\Program Files\Anaconda3\envs\python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute self.error_handler.check_response(response) File "D:\Program Files\Anaconda3\envs\python37\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response raise exceptionclass(message, screen, stacktrace) selenium.common.exceptions.InvalidArgumentException: Message: invalid argument (Session info: headless chrome=81.0.4044.129)

I am using this command: python bing_scraper.py --url 'https://www.bing.com/images/search?q=parcel' --limit 100 --download --chromedriver ../chromedriver.exe

and the version of chromedriver is 81.0.4044.129

365gg commented 4 years ago

I try the command, from [https://github.com/hardikvasa/google-images-download/issues/301]() python bing_scraper.py --search "parcel" --limit 100 --download --chromedriver ../chromedriver.exe and it works well.

glenn-jocher commented 7 months ago

It seems like you're encountering an issue with the command python bing_scraper.py --url 'https://www.bing.com/images/search?q=parcel' --limit 100 --download --chromedriver ../chromedriver.exe and the specific chromedriver version 81.0.4044.129.

Your description indicates a potential problem with the command or the compatibility of the chromedriver version.

You might want to consider updating the chromedriver to see if that resolves the issue. Additionally, please ensure that the command is correctly formatted and any required arguments are being provided accurately.

Feel free to reach out for further assistance if needed.