Python 3 Script to Get Live Running Status of Train and Live PNR Status Using Railways API Full Project For Beginners

You are currently viewing Python 3 Script to Get Live Running Status of Train and Live PNR Status Using Railways API Full Project For Beginners

 

Welcome folks today in this blog post we will be getting live running status of train and also the pnr status of train using the railways api in python. All the full source code of the application is shown below.

 

 

Get Started

 

 

In order to get started we need to get the railway api api_key as shown below

 

Official Railway Website

 

Now get the api_key from the series of steps as shown below

 

 

Now just store your api_key from your account and store it we will use it later inside the python script

 

Now make an app.py file and copy paste the code which is given below

 

app.py

 

Live Status of Train

 

 

 

Live PNR Status of Train

 

 

app.py

 

 

Leave a Reply