In the first demo of the course,
we are going to install all the libraries and packages
required for the entirety of the course.
We need four things, the Selenium package,
the WebDriver for your browser, the Beautiful Soup package,
and Jupyter Notebook.
You can go to this website for instructions on how
to install the first two things.
For installing Selenium,
all you need to do is go to your terminal and type in pip3 install selenium.
Selenium requires a driver to interface with your choice of browser.
And if you go down on the same page,
you can see the various drivers for different routers.
I use Chrome and I'm on the Mac OS, so that is the route I'll show today.
But it is very similar on other browsers and operating systems.
We click on this link, which takes us to this page.
Based on your Chrome version, you'll need to click on the correct link.
You can see I have version 74 and change, so I'll be clicking on this link.
And again, download the correct driver based on your OS.
Go ahead and unzip the file.
You should get an executable file called chromedriver.
To use this,
you can either make it accessible via the PATH variable of the
operating system or in case you get errors doing that,
you can directly specify the location of the Chrome driver.
Tests will become more clearer in the next demo.
And finally, we'll install Beautiful Soup.
Similar to the Selenium package,
typing our pip3 install beautifulsoup4 on your command
line or terminal should do the trick.
We'll also install Jupyter Notebook,
which is something most of you will be familiar with
if you've dabbled in data science.
You can get it by installing the Anaconda package for Python 3 from this link.
This, in addition to installing Jupyter Notebook,
also installs a bunch of very useful packages for data science.
If not, you can always use pip3 install jupyter on your terminal or command line.