TechSutra

Scripting PNR status checking

If you end up on the RAC or Waiting List when you book an Indian Railways train ticket, it can be quite tiresome to keep checking the Indian Railways web site to check the pnr status. To take out some pain out of the process i wrote a ruby script which scrapes the data from the site. One added advantage is that, since the PNRs are stored in the script you need not type it over and over again. It uses the mechanize library to do the heavy lifting.

blog comments powered by Disqus