All 211

[크롤링] python으로 동영상 m3u8 다운로드하기

python을 이용한 대학교 내의 동영상 강의 다운로드로 크롤링 연습하기 빅데이터 강의시간의 크롤링 수업을 복습하기 위해 제작. 전체 프로세스는 로그인 하기-> 강의 목록 가져오기 -> 선택한 강의의 동영상 목록 가져오기 -> 동영상 다운로드 1. 로그인하기 1.1 로그인 요청 아이디와 비밀번호를 입력하여 로그인 버틀을 누르면 브라우저는 index.php에 대해 username(아이디)와 password(비밀번호)의 form data를 이용해 요청을 보낸다. 파이썬에서는 requests 라이브러리를 이용하면 request를 보낼 수 있다. response이 이캠퍼스 주소일 경우 while문을 빠져 나오고, 그렇지 않으면 올바른 아이디,비밀번호 입력을 받을 때까지 반복한다. import requests f..

카테고리 없음 2022.06.22

Redis RDB 저장 에러 (MISCONF Redis is configured to save RDB snapshots)

error: MISCONF Redis is configured to save RDB snapshots, but it's currently unable to persist to disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error. 내용: redis는 rdb 스냅샷을 찍어 데이터를 보관하게 되는데, RDB 저장시 폴더의 ..

PYTHON 2022.05.18

wsl2 리눅스 우분투 외부ip로 접속하기 (포트포워딩 해도 안될 때)

wsl는 자체적으로 가상 ip를 가지므로 외부 ip로 접속시 외부ip->wsl내부ip로 포트포워딩이 필요함 1. 리눅스 내에서 ifconfig 명령어를 통해 리눅스 내부 ip (inet부분)을 확인 여기서는 172.23.174.21이네요. 2. 파워셀에서 명령어를 통해 포트포워딩하기 netsh interface portproxy add v4tov4 listenport=1000 listenaddress=0.0.0.0 connectport=1000 connectaddress=172.23.174.21 netsh interface portproxy show all

PYTHON 2022.05.18

npm bcrypt 설치 오류 해결

발생 배경: package-lock.json으로 오래된 프로젝트의 패키지 설치시 발생 이하는 에러 로그 더보기 npm ERR! code 1 npm ERR! path D:\start\JavaScriptEverywhere\api\node_modules\bcrypt npm ERR! command failed npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-buildnpm ERR! Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\dongheon\AppData\Roaming\npm\node_modules\npm\node_modules\node-..

카테고리 없음 2021.12.30

[CSS]boxmodel과 box-sizing

html요소는 content + padding + border + margin로 이루어져 있다. content는 html요소의 내용이 들어가는 곳이다 padding은 content영역과 border 사이의 빈 공간이다. border는 요소의 가장 바깥 테두리이다. margin은 테두리밖 즉, 요소의 바깥 공간이다. 다른 요소와 간격을 두기 위해,혹은 요소의 위치를 움직이기 우해 사용한다. 크기 설정 속기형 순서 위부터 시계방향 4개 top right bottom left 3개 top (right-botton) bottom 2개 (top-bottom) (right-bottom) Box-sizing 기본값은 box-sizing: content-box 이때 요소의 크기는 width(height) + paddi..

HTML 2020.09.20