This repository provides a semi-automated script to assist in booking Tatkal tickets on IRCTC using Google Chrome. The script helps fill in login details, passenger information, and journey details to speed up the booking process. It needs chrome browser.
- Auto-fills login credentials.
- Auto-fills passenger details.
- Reduces manual input time during Tatkal booking.
- Not fully automated: You will need to manually solve the Captcha, select the train, and complete the payment process.
- Google Chrome browser installed.
- ChromeDriver corresponding to your Chrome version.
- Python installed with the required dependencies.
- Clone the repository:
git clone https://github.com/nevatia/TATKAL.git
- Install dependencies:
pip install -r requirements.txt
- Set up login credentials in
login.json:{ "USERNAME": "xxxxxxxxxxx", "PASSWORD": "xxxxxxxxx" } - Enter passenger and travel details in
passenger_details.json:{ "TRAVEL_DATE": "01/04/2025", "SOURCE_STATION": "NDLS", "DESTINATION_STATION": "HWH", "MOBILE": "9898989898", "PASSENGER_DETAILS": [ { "NAME": "VIRAT KOHLI", "AGE": 40, "GENDER": "Male", "SEAT": "No Preference", "FOOD": "No Food" }, { "NAME": "ANUSHKA KOHLI", "AGE": 36, "GENDER": "Female", "SEAT": "No Preference", "FOOD": "No Food" } ], "__valid_seats__": "Lower | Middle | Upper | Side Lower | Side Upper | Window Side | No Preference", "__valid_genders__": "Male | Female | Transgender", "__valid_food_choices__": "Veg | Non Veg | No Food" }
- Run the script:
python sanju_Tatkal_booking.py
- The script will open Chrome, navigate to IRCTC, and fill in login details.
- Manually solve the Captcha and select the train.
- The script will auto-fill passenger details.
- Manually proceed with payment to complete the booking.
- First, modify the
login.jsonandpassenger_details.jsonfiles as per your requirements. - Run the Python file.
- It will automatically try to log in to the website and ask for CAPTCHA. AFTER YOU SEE CURSOR IN CAPTCHA INPUT FIELD, CLICK IN FIELD AND ENTER CAPTCHA then press ENTER.
- After entering the correct CAPTCHA, the script will search for your trains and display a list of available options.
- Wait for 10 AM and click on the desired CLASS (AC3/2/1 tier), then select DATE, and finally click BOOK NOW.
- All passenger details will be auto-filled, and you will be taken to the PAYMENT CAPTCHA page.
- Check the ticket details and enter the CAPTCHA.
- Select your desired payment option and complete the payment quickly.
- The program will wait for 3 minutes and then exit.
Also included EXE folder which contains executable file. No need to install python or other libraries. You only need windows with chrome. Update login and passengers file and run exe.
This script is intended for educational purposes only. Use at your own risk. We are not responsible for any misuse or violations of IRCTC's terms and conditions.
This project is licensed under the MIT License - see the LICENSE file for details.