#100DaysOfCode in Python Transcripts
Chapter: Days 73-75: Automate tasks with Selenium
Lecture: Setup: install Selenium and ChromeDriver

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Alright, o get started,
0:02 you need to install Selenium.
0:04 So I suggest you make a virtual environment.
0:06 So I made a selenium subdirectory.
0:09 And I'm using Anaconda.
0:11 So I have a special alias to do this.
0:13 If you're on a typical Python 3 installation,
0:16 you probably use something like this.
0:18 Which is fine, right?
0:19 It's not working for me.
0:21 So, I'm using...
0:26 all right.
0:27 That makes my venv,
0:28 and let's enable it.
0:30 I have an alias for that.
0:33 Because I'm working with
0:34 virtual environments all the time.
0:35 And deactivate is under tabs.
0:39 and activate is not.
0:45 So, that that,
0:48 There's nothing installed.
0:49 So now I'm doing pip install selenium.
0:55 And that should be all we need.
1:00 No dependencies, just a clean install one package.
1:03 All right,
1:04 one other thing though is,
1:06 before I was using PhantomJS.
1:08 But using Selenium again after awhile,
1:11 I got this Selenium support for
1:13 PhantomJS has been deprecated error.
1:16 So I downloaded this Chrome driver.
1:19 And the only thing you have to do
1:20 is put that in your path.
1:23 So here you download the binary.
1:28 So with that driver downloaded,
1:30 I can extract that somewhere that's under my path.
1:38 And if that directory's not in your path,
1:40 you can put it there by doing in your batch rc
1:44 just for now here on the command line.
1:46 export path = whatever is in path already.
1:50 Appending home/bin.
1:52 Now I'll do a which Chrome driver,
1:56 you see it's in my path.
1:58 That's all you need so that Selenium can work
2:00 with a headless browser.
2:02 And with that, you should be all set up.