Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
365gg opened this issue Apr 29, 2020 · 2 comments

Comments

@365gg
Copy link

365gg commented Apr 29, 2020

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 exception_class(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
Copy link
Author

365gg commented Apr 29, 2020

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants