If you don’t have an account in Quandl, create one. It’s free.
Make a note of the API Key
Once you create account, first thing that pops up is API Key, keep it safe you will need it. API Key can also be found in “Account Settings” and “API KEY” section.
Click “CORE FINANCIAL DATA” and search for company name. For example here, I have searched for “Jindal Poly”
Choose the database from the result
In the search results look for NSE or BSE. Click EOD Prices link from "Bombay Stock Exchange"
All of this data is available to download and it can be downloaded in any of these formats (CSV, JSON and XML). While you hover on the format options you can see the link, which you can use in the program of your chose to download the data.
Raw data will be looking like this.