Gent Gashi
Gent Gashi

Reputation: 1

Selenium / chromedriver problem status code: 127

I'm in the proccess of completing the final project for CS50P and I want to use Selenium to scrape data from web (seems to be called dynamic content, which is why I saw I couldn't use requests). Note: I'm using VS studio in the cloud via the cs50.dev

Selenium is installed via pip install.

I think there's a few problems with the chrome driver:

  1. I don't have the right version. My chrome version is Version 129.0.6668.71 yet I can only find Version 129.0.6668.70 online to download. Does the version have to match correctly? If so, how does one find the right chrome driver when the official website does not have it available to download?

  2. If "1" is not an issue, well, I simply put the chromedriver.exe into the project folder (check picture below):

enter image description here

Yet, when I try to run this code:

from selenium import webdriver
driver = webdriver.Chrome()

which should simply open a chrome tab, I'm getting an error message as follows:

enter image description here

Any ideas as to how I can go about this?

Here's the full window view: enter image description here

Thanks.

I tried to do this even locally in VS Code. While I get no error, the chrome tab doesn't open at all when I run the code.

Upvotes: 0

Views: 223

Answers (0)

Related Questions