linkedin_scraper icon indicating copy to clipboard operation
linkedin_scraper copied to clipboard

Path for selenium

Open kstephensen opened this issue 2 years ago • 2 comments

Hey can someone walk through this step?

Where does this go?

export CHROMEDRIVER=~/chromedriver

kstephensen avatar Aug 17 '22 03:08 kstephensen

This looks like it needs to be entered into the terminal or a "output to Linux" type event.

Can you be more specific as to where you got this or what step this refers to?

datatalking avatar Aug 17 '22 15:08 datatalking

Screen Shot 2022-08-17 at 9 19 14 AM

It comes from the "Set Up" step. I'm using a Mac

kstephensen avatar Aug 17 '22 16:08 kstephensen

  1. Find what chrome version you have installed on your computer.
  2. Go to https://pypi.org/project/chromedriver-py/#history and install the same version of chromedriver
  3. And then
from selenium import webdriver
import chromedriver_binary
driver = webdriver.Chrome()

P.S. I think you have to pip install chromedriver_binary --no-cache-dir

danielhangan avatar Nov 10 '22 20:11 danielhangan