Altimis / Scweet

A simple and unlimited twitter scraper : scrape tweets, likes, retweets, following, followers, user info, images...
MIT License
1.05k stars 224 forks source link

:Can not find chromedriver for currently installed chrome version. #175

Open dhruv-bansal opened 10 months ago

dhruv-bansal commented 10 months ago

WARNING:root:Can not find chromedriver for currently installed chrome version. Traceback (most recent call last): File "/Users/fracon/Documents/code/POC/Scweet/Example.py", line 7, in data = scrape(words=['bitcoin', 'ethereum'], since="2021-10-01", until="2021-10-05", from_account=None, interval=1, File "/Users/fracon/Documents/code/POC/Scweet/Scweet/scweet.py", line 71, in scrape driver = init_driver(headless, proxy, show_images) File "/Users/fracon/Documents/code/POC/Scweet/Scweet/utils.py", line 153, in init_driver driver = webdriver.Chrome(options=options, executable_path=driver_path) File "/Users/fracon/Documents/code/POC/Scweet/venv/lib/python3.9/site-packages/selenium/webdriver/chrome/webdriver.py", line 70, in init super(WebDriver, self).init(DesiredCapabilities.CHROME['browserName'], "goog", File "/Users/fracon/Documents/code/POC/Scweet/venv/lib/python3.9/site-packages/selenium/webdriver/chromium/webdriver.py", line 89, in init self.service.start() File "/Users/fracon/Documents/code/POC/Scweet/venv/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 71, in start self.process = subprocess.Popen(cmd, env=self.env, File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 951, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1696, in _execute_child and os.path.dirname(executable) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/posixpath.py", line 152, in dirname p = os.fspath(p) TypeError: expected str, bytes, or os.PathLike object, not NoneType

As per this link after selenium 4.12 this explicit dependency should go away any plans to upgrade selenium library - see there is explicit dependency on 4.2.0 or any work around for this issue? I am using Version 119.0.6045.159 (Official Build) (arm64) version of chrome

uvlover commented 9 months ago

The Google version is too new, just download an older version.