Nodejs 노드 스크래핑(크롤링) 소스 보기 노드앱을 만들고 실행해보세요. npm run start const axios = require('axios'); const cheerio = require('cheerio'); const log = console.log; const getHtml = async () => { try { return await axios.get('https://jgun.tistory.com/50'); } catch (error) { console.error(error); } }; getHtml() .then((html) => { const $ = cheerio.load(html.data); const data = { mainContents: $('#content > div.in.....
원문 링크 : Nodejs 노드 스크래핑(크롤링) 소스 보기