Skip to content

Selenium based automation and web scraping of train ticket availability

Notifications You must be signed in to change notification settings

avmchandrish/train_flask_app

Repository files navigation

Selenium Automation of Train Seats Availability

IRCTC website, is a Indian government website which facilitates booking of train tickets and show availability of the seats for a particular route. There are four (or sometimes five) classes of tickets for each train available on that route and the checking availability across all classes was a cumbersome process given the complexity of the website. The website interface looked something like below:

image

The problem was the number of clicks you have to do to check availability across all the classes. In the example above, to know seats availability across all the classes would have required around 60 clicks on the website! (3 clicks per class).

Hence I developed an automation with Selenium, to simulate these 60 clicks and at the same time scrape the data and present it in a simple easy to read table format like this:

image

Complete demo of the webapp:

availability_demo_720.mov

About

Selenium based automation and web scraping of train ticket availability

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published