Skip to content

Basic python script which automates the process of applying a leave using Selenium

Notifications You must be signed in to change notification settings

hardikkum444/LPU_leave_automated

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leave is now automated

This is a basic Python script that automates the process of applying for leave using Selenium.

--> Setup Instructions (for Linux)

Step 1: Install Firefox GeckoDriver

  • Download GeckoDriver from here.
  • Choose the appropriate version, preferably geckodriver-v0.34.0-linux64.tar.gz.

Step 2: Extract GeckoDriver

  1. Open a terminal and navigate to the directory containing the downloaded .tar.gz file.
  2. Use the following command to extract the file:
    tar xvfz geckodriver-v0.34.0-linux64.tar.gz

Step 3: Move GeckoDriver to $PATH

  1. After extraction, you'll find a folder called geckodriver.
  2. Move that folder to your $PATH using the following command:
    mv geckodriver /usr/local/bin

Step 4: Ready to Use

Now you're all set to use the script!

Run the script using (make sure you have Python 3 installed on your system!):

python3 leave_applier.py

Usage

  • Ensure you have Python installed.
  • Install Selenium using pip install selenium.
  • Run the provided Python script to automate the leave application process.

Note

This setup is specifically for Linux.
ALso please ensure that you have a stable internet connection.


--> Setup Instructions (for Windows)

Step 1: Download GeckoDriver for Windows

  • Download GeckoDriver for Windows from here.
  • Choose the appropriate version, preferably geckodriver-v0.34.0-win32.zip.

Step 2: Extract GeckoDriver

  1. Extract the downloaded .zip file.
  2. You'll find geckodriver.exe inside the extracted folder.

Step 3: Set Up GeckoDriver Path

  1. Move geckodriver.exe to any directory of your choice.
  2. Add the directory path to your system environment variables:
    • Go to Control Panel > System and Security > System.
    • Click on "Advanced system settings" on the left panel.
    • In the System Properties window, click on the "Environment Variables" button.
    • Under "System variables", find the "Path" variable and click "Edit".
    • Add the directory path containing geckodriver.exe to the list of paths.

DONT FORGET TO READ THE SCRIPT (windows.py) FOR IMP INSTRUCTIONS!

Step 4: Ready to Use

Now you're all set to use the script!

Run the script using (make sure you have Python installed on your system!):

python windows.py

Usage

  • Ensure you have Python installed.
  • Install Selenium using pip install selenium.
  • Run the provided Python script to automate the leave application process.

Note

This setup is specifically for Windows. ALso please ensure that you have a stable internet connection.

--> Setup fot the GUI version

Steps to follow for the GUI version:

  1. Install tkinter and customtkinter libraries using the following command on the terminal
    pip3 install tk
    pip3 install customtkinter
  2. Make sure you have followed the above steps for your system, and then simply run the 'leave_gui.py' file
    python3 leave_gui.py

Again please make sure that you have a good internet connection

About

Basic python script which automates the process of applying a leave using Selenium

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages