Thanks for informing me that it is not legal to scrape http://www.indianrail.gov.in. I am rewriting the code to scrape only http://indiarailinfo.com, which does not explicitly forbid scraping. Is it legal to scrape such a site (without overloading it)? Is it legal to share that code?
I'm not sure if there are any general rules/guidelines in India for this. However, IndianRailInfo doesn't have any Copyright/Disclaimer mentioned on their homepage. So I see no reason why it should be a problem.
Re:Source, till it's not used to scrape Copyright/private data, it shouldn't be a problem. Mention this clause in the disclaimer/license. Will you be putting it on GitHub?
Would people be interested in a Downloadable HTML version as well? RTD only offers PDF for the moment, but supporting a downloadable HTML zip would be pretty simple to do as well. I note that it's the other part of the OP that isn't supported.