NODE.JS 자바스크립트 사용하여 웹 데이터 읽기
var request = require('request');
request('https://www.accuweather.com/ko/kr/seoul/226081/weather-forecast/226081',
function (error, response, body) {
const cheerio = require('cheerio')
const $ = cheerio.load(body);
console.log($('#current-city-tab > a > span.local-temp').text());
});
no comments