This project automates IRCTC and GOIBIBO ticket booking using Python, Selenium, PyAutoGUI and OCR-based tesseract.
This project focuses on automating the train ticket booking process on two major platforms: IRCTC and Goibibo, using Python, Selenium, and PyAutoGUI. The objective is to reduce manual effort, save time, and improve booking accuracy, especially during peak hours such as Tatkal ticketing.
For the IRCTC automation, the script leverages Selenium WebDriver to interact with the browser. It automates the end-to-end workflow—starting from user login (with automatic CAPTCHA input) to selecting stations, journey date, train number, class (e.g., Sleeper, 3AC), and entering passenger details. It also handles payment via UPI and includes options like travel insurance. The script is designed to execute these steps quickly and accurately, considering the time-sensitive nature of IRCTC bookings.
For Goibibo, the project uses PyAutoGUI to detect and interact with on-screen elements through image recognition. It simulates mouse clicks and keyboard inputs to navigate the booking process. This is particularly useful for automating applications or parts of the UI that are difficult to interact with through traditional web scraping or DOM-based methods.
Together, these automation tools demonstrate how Python can be used to build powerful, real-world solutions that mimic human interactions and optimize time-critical online processes
So far, we’ve automated the login and train search process on the IRCTC website using Selenium. The script fills in the source, destination, date, and finds trains automatically. For Goibibo, we’re using PyAutoGUI to detect buttons and click on them like a human would. Everything is going smoothly, and we’re making steady progress