보호되어 있는 글입니다.
특정 텍스트를 넣어서 검색한 결과 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
- elastic-builder
- ChromeExtension
- Hoisting
- 디스코드
- container접속
- 깃헙
- JavaScript
- docker-compose
- AWS
- docker exec
- elasticsearch
- 웹훅
- serverless
- branch조회
- github
- aws cli
- 도커
- git동기화
- 람다
- should
- NestJS
- contentScript.js
- webhook
- Lambda
- 크롬익스텐션
- docker
- nodejs
- 서버리스
- background.js
- Error "server gave HTTP response to HTTPS client"