This project fetches Fortinet, Inc. (FTNT) stock data from Yahoo Finance using Selenium, processes the data using Pandas, and plots the stock prices for the last twelve months using Matplotlib. The plot is displayed directly in a Jupyter Notebook.
Before running the code, please ensure the following:
-
Python Version
- Make sure you are using Python version 3.9.13 or above.
- You can check your Python version by running:
python --version
-
Install Required Libraries
- Install Selenium, Pandas, and Matplotlib using pip:
pip install selenium pandas matplotlib
- Install Selenium, Pandas, and Matplotlib using pip:
-
Selenium Version
- Ensure that you are using Selenium version 4.21.0 or above.
- You can check your Selenium version by running:
pip show selenium
-
Download and Setup ChromeDriver
- Download the ChromeDriver from here.
- Place the
chromedriver.exe
in the same working directory as your Python script or Jupyter Notebook.
- Ensure that
chromedriver
is compatible with your installed version of Google Chrome. - The script is designed to run in a Jupyter Notebook environment to visualize the plot directly.