2026. 6. 10. 10:37 아무거나
특정사이트에서 pdf 화일만 download 받는 방법
특정사이트에서 필요한 파일만 받고 싶은 경우가 있다.
예를 들어 아래의 오라클 기술문서 Manual 사이트에서 전체 pdf 화일만 긁어서 다운 받고자 할 때 이렇게 하면 노가다 없이 쉽게 받아진다. (Chrome 확장프로그램 써도 되지만 커맨드로 간단하게)
https://docs.oracle.com/en/database/oracle/oracle-database/26/books.html
우선
cmd 치고 터미널에서 winget 다운로드
1)
winget install wget
Found Wget [JernejSimoncic.Wget] Version 1.21.4
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://eternallybored.org/misc/wget/1.21.4/64/wget.exe
██████████████████████████████ 6.71 MB / 6.71 MB
Successfully verified installer hash
Starting package install...
Command line alias added: "wget"
Path environment variable modified; restart your shell to use the new value.
Successfully installed
2) wget 으로 바로 다운로드 <---- 사이트 URL 만 지정해주면 됨
wget -r -l1 -H -nd -A.pdf -e robots=off "https://docs.oracle.com/en/database/oracle/oracle-database/26/books.html"
--2026-06-10 10:17:37-- https://docs.oracle.com/en/database/oracle/oracle-database/26/books.html
Resolving docs.oracle.com (docs.oracle.com)... 121.254.136.145, 121.254.136.251
Connecting to docs.oracle.com (docs.oracle.com)|121.254.136.145|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 270700 (264K) [text/html]
Saving to: 'books.html.tmp'
books.html.tmp 100%[=================================================>] 264.36K --.-KB/s in 0.009s
이런식으로 나머지 것도 쭈욱 받아진다. 화일은 실행한 곳 바로 아래에 받아진다.
끝.