728x90 웹 크롤링1 [NodeJs] Javascript를 활용한 크롤링 (데이터수집) NodeJs / Javascript 를 활용한 크롤링 (데이터 수집) 1. nodejs와 npm 을 설치하자 nodejs.org/ko/ { keyword = encodeURI(keyword); try { return axios.get(`https://kin.naver.com/search/list.nhn?query=`+keyword); }catch(err){ console.log(err); } } const getData = async(keyword) =>{ const html = await getHTML(keyword); const $ = cheerio.load(html.data); const contentList = $('#container .basic1 li'); let titles = []; con.. 2021. 4. 14. 이전 1 다음 728x90