cheerio1 [GAS] cheerio를 이용한 Daum뉴스 크롤링 더보기 function getContent_(url) { return UrlFetchApp.fetch(url).getContentText() } function scraper() { const content = getContent_("https://news.daum.net/"), // 다음 뉴스 검색 URL $ = Cheerio.load(content), // 크롤링을 위한 Cheerio 선언 daum_news = $('.list_newsissue > li').toArray(); // 다음 뉴스 메인기사 태그를 daum_news에 배열에 담아라 let sht = SpreadsheetApp.getActiveSheet(), // 현재시트를 sht로 선언 titles = []; // 최종 배열들을 담을 tit.. 2023. 4. 19. 이전 1 다음