This repository serves as an illustration of how to retrieve and scrape data from Greythr using Selenium.
- Automate login on Greythr using employee username and password.
- Scrape all employees data and store it in xsls file.
- Construct a bar graph that illustrates the employee count categorized by their respective designations.
- Generate a Pie chart representing the distribution of employees based on their birth months.
-
Python: Make sure Python is installed on your system. You can download the latest version of Python from the official Python website (https://www.python.org) and follow the installation instructions for your operating system.
-
pip: Check if pip is installed by running the following command in your command-line interface or terminal:
pip --version
If pip is not installed, you can install it by following the instructions provided on the official Python website.
-
Chrome Browser: Ensure that you have a Chrome web browser installed on your system. [The provided code has been tested on Chrome version 114.0.5735.198 (Official Build) (64-bit)]
-
ChromeDriver: Make sure the ChromeDriver version matches the Chrome browser version installed on your system. You can download ChromeDriver from the official ChromeDriver website (https://sites.google.com/a/chromium.org/chromedriver/downloads) and follow the installation instructions. [The driver version has also been included in the repository I provided]
-
Used libraries: Once you have fulfilled the above prerequisites, you can Install the necessary libraries using pip. Here is the command to install the required libraries:
pip install -r requirements.txt
- Modify the configuration file (config.ini) by replacing <YOUR_COMPANY_NAME> with your company name, <YOUR_USERNAME> with your username, and <YOUR_PASSWORD> with your Greythr password.
- To run the script, use the following command:
python3 scrap.py
Free Software, Hell Yeah!