node.js - Using npm 'request' to scrape data from a stock website -


i have searched around , can't find impossible or doing wrong.

http://www.investing.com/commodities/

has list of numbers want at.

when run

var request = require('request'); var url = 'http://www.investing.com/commodities/';  request(url, function(error, response, body){     console.log(response.statuscode) //403 }) 

im getting 403 statuscode response. free website can go to, why can't node server response it?

thanks response (that's not 403...!)


Comments

Popular posts from this blog

iis - ASP.Net Core CreatedAtAction in HttpPost action returns 201 but entire request ends with 500 -

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -