cullenwatson / StaffSpy

Staff scraper library for LinkedIn - obtain experiences, schools, skills & more
MIT License
62 stars 6 forks source link

Exception: driver not found for selenium #42

Closed huseyincenik closed 2 weeks ago

huseyincenik commented 2 weeks ago

Traceback (most recent call last):

File "app.py", line 5, in account = LinkedInAccount( File "anaconda3\envs\r_base_n\lib\site-packages\staffspy__init.py", line 33, in init self.login() File "anaconda3\envs\r_base_n\lib\site-packages\staffspy\init__.py", line 38, in login self.session = login.load_session() File "anaconda3\envs\r_base_n\lib\site-packages\staffspy\utils\utils.py", line 241, in load_session session = self.login_browser() File "anaconda3\envs\r_base_n\lib\site-packages\staffspy\utils\utils.py", line 211, in login_browser raise Exception("driver not found for selenium") Exception: driver not found for selenium

Even though I installed the package as you suggested, I am still getting the "driver not found for selenium" error.

cullenwatson commented 2 weeks ago

true, added a way to specify the path of your installed chromedriver

account = LinkedInAccount(
     driver_type=DriverType(
         browser_type=BrowserType.CHROME,
         executable_path="/Users/pc/chromedriver-mac-arm64/chromedriver"
    ),
)
huseyincenik commented 2 weeks ago

Thank you