SW0000J

app.js 불필요 정보 크롤링 수정

Showing 1 changed file with 1 additions and 2 deletions
1 const axios = require("axios"); 1 const axios = require("axios");
2 const cheerio = require("cheerio"); 2 const cheerio = require("cheerio");
3 -const log = console.log;
4 3
5 const getHtml = async () => { 4 const getHtml = async () => {
6 try { 5 try {
...@@ -14,7 +13,7 @@ getHtml() ...@@ -14,7 +13,7 @@ getHtml()
14 .then(html => { 13 .then(html => {
15 let ulList = []; 14 let ulList = [];
16 const $ = cheerio.load(html.data); 15 const $ = cheerio.load(html.data);
17 - const $bodyList = $("ul.list li").children("div.item-box01"); 16 + const $bodyList = $("div.list-type038 ul.list li").children("div.item-box01");
18 17
19 $bodyList.each(function(i, elem) { 18 $bodyList.each(function(i, elem) {
20 ulList[i] = { 19 ulList[i] = {
......