Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 581 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 581 Bytes

pnr_status

A Python script to fetch pnr status. An attempt to bypass captcha on http://www.indianrail.gov.in/pnr_Enq.html

Dependencies

  1. sudo pip install requests (http://docs.python-requests.org/en/latest/)
  2. sudo pip install beautifulsoup (http://www.crummy.com/software/BeautifulSoup/)

Usage

usage --
python fetch_pnr_status.py <PNR no.>

Example

$python fetch_pnr_status.py 4416052206
[u'*12735', u'YPR GARIB RATH', u'21- 1-2016', u'SC', u'YPR', u'YPR', u'SC', u'3A', u'Passenger 1', u'G12 , 73,SS', u'CNF', u'CHART NOT PREPARED']