https://www.cnblogs.com/liuchuanfeng/p/6686009.html
let request = require('request');let options = {url: '',headers: {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36'}};function callback(error, response, body) {if (!error && response.statusCode == 200) {let info = JSON.parse(body);console.log(response.statusCode + " Stars");} else {console.log(response.statusCode + " Stars2");}}let urlArr = ['http://data.cma.cn/data/cdcdetail/dataCode/NOCV_SURF_CLI_GLB_MUL_DAY.html','http://tipex.data.cma.cn/tipex/expeditionData/id/3.html']options.url ='http://data.cma.cn/data/cdcdetail/dataCode/NOCV_SURF_CLI_GLB_MUL_DAY.html'request(options, callback);
