보호되어 있는 글입니다.
특정 텍스트를 넣어서 검색한 결과 html 을 수집 (크롤링) 수집한 html 내 태그 안의 데이터를 추출해야 함 작성한 내용 const url = `URL`; fetch(url) .then((response) => response.text()) .then((data) => { const parser = new DOMParser(); const doc = parser.parseFromString(data, 'text/html'); const json = doc.getElementById("__SCRIPT_TAG_ID__").innerHTML; }); } 👉🏻 fetch를 통해 받아온 html 데이터를 넘겨서 html파일로 인식하게 작업하는 데에 참고한 코드 더보기 fetch('/about').then(f..
Chrome Extension에서 JQuery를 쓰기 위해 popup.html 의 에 jquery src 를 추가했다. 그랬더니 아래와 같은 오류가 남. 오류내용 Refused to load the script 'https://code.jquery.com/jquery-3.3.1.min.js' because it violates the following Content Security Policy directive: "script-src 'self' blob: filesystem:". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback. 대충 핵심만 보면 Content Security Policy 를..
- Total
- Today
- Yesterday
- docker
- serverless
- Hoisting
- AWS
- 크롬익스텐션
- 람다
- github
- container접속
- aws cli
- 서버리스
- elasticsearch
- NestJS
- background.js
- JavaScript
- contentScript.js
- 웹훅
- Lambda
- docker-compose
- 깃헙
- 도커
- 디스코드
- elastic-builder
- should
- nodejs
- docker exec
- ChromeExtension
- Error "server gave HTTP response to HTTPS client"
- git동기화
- branch조회
- webhook