We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The script works but the zip file is corrupted. What am I doing wrong here?
// curl -LOk -X 'GET' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:51.0) Gecko/20100101 Firefox/51.0' -H 'Referer: https://nseindia.com/products/content/equities/equities/archieve_eq.htm' -H 'Upgrade-Insecure-Requests: 1' 'https://nseindia.com/content/historical/EQUITIES/2000/MAR/cm7MAR2000bhav.csv.zip' var curl = require('curlrequest'); var fs = require( 'fs' ); var options = { url: 'https://nseindia.com/content/historical/EQUITIES/2000/MAR/cm7MAR2000bhav.csv.zip', verbose: true, headers: { 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:51.0) Gecko/20100101 Firefox/51.0', 'Referer': 'https://nseindia.com/products/content/equities/equities/archieve_eq.htm', 'Upgrade-Insecure-Requests': '1' } }; var file = fs.createWriteStream("bhav.zip"); curl.request(options, function (err, data) { file.write(data); });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The script works but the zip file is corrupted. What am I doing wrong here?
The text was updated successfully, but these errors were encountered: