크롤링시 수집한 태그 지우기 (puppeteer)

이태혁·2020년 9월 19일
0
let imgtag = document.querySelector('img');
imgtag.parentElement.removeChild(imgtag);

img태그를 돔에서 추출한뒤 parentElement로 한단계 올라가서 그의 자식을 삭제하면됨

profile
back-end, cloud, docker, web의 관심이 있는 예비개발자입니다.

0개의 댓글