Giter Club home page Giter Club logo

irctc-automation's Introduction

IRCTC Automation

This project automates the process of booking train tickets on the Indian Railway Catering and Tourism Corporation (IRCTC) website. By utilizing Selenium, it streamlines tasks such as logging in, selecting trains, filling out details, and processing payments.

Setup

Before running the automation script, ensure you have the following prerequisites:

  1. .env File: Create a .env file in the project root directory. This file should contain the following information:

Username = "IRCTC USER NAME" Password = "IRCTC PASSWORD" Upi = "YOUR UPI ID"

Replace `Username`, `Password`, and `Upi` with your actual IRCTC credentials and UPI ID.
  1. Selenium Driver: This project utilizes Selenium for web automation. Ensure you have the appropriate Selenium driver for your browser installed and configured. The Utils file contains a function to create a Selenium driver.

  2. Model for Captcha: The Utils file also contains functions to read captchas. Make sure you have a model loaded to read captchas effectively.

Usage

  1. Login: The first step may involve a one-step or two-step process depending on your browser's settings. If the login process doesn't go smoothly, you may need to adjust this step accordingly.

  2. Select Train: Once logged in, you can select the train from the list provided, considering the train's name and seat availability.

  3. Payment: After selecting the desired train and filling out necessary details, the payment amount will be sent to the UPI ID mentioned in the .env file. Ensure the UPI ID is correct to receive the payment link.

Note

  • The automation script is designed to handle common scenarios, but slight adjustments may be required based on individual browser configurations.
  • Make sure all dependencies are installed and configurations are set up correctly before running the script.

Happy automating your IRCTC ticket booking process! ๐Ÿš‚๐ŸŽŸ๏ธ

irctc-automation's People

Contributors

prateekpal641 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.