/py-trains

Scraping data from railyatri.in to find trains for a given source and destination on a given date

Primary LanguagePython

made-with-python

py-trains

A python program that scrapes Indian Railways data from railyatri.in to find trains for a given source and destination running on a given date.

Installation

To run py-trains, you will need python3 and some additional packages. To install those packages, simply use the following command:

$ pip3 install -r requirements.txt

Usage

You need to pass arguments using the CLI itself to use py-trains

e.g. To get trains from Mumbai Bandra Terminus to Pune Junction on 22nd December, 2019:

$ python3 trains.py BDTS PUNE 22 12 2019