mirror of https://github.com/IoTcat/exrate.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
197 B
7 lines
197 B
4 years ago
|
const request = require('request');
|
||
|
|
||
|
request('https://www.huilv.cc/GBP_CNY/', (err, header, body)=>{
|
||
|
var val = body.match(/<span(.*?)<\/span>/g)[0].match(/\d+(.\d+)?/g)[0];
|
||
|
console.log(val);
|
||
|
});
|