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

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

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -