특정사이트에서 필요한 파일만 받고 싶은 경우가 있다. 

 

예를 들어 아래의 오라클 기술문서 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

 

이런식으로 나머지 것도 쭈욱 받아진다. 화일은 실행한 곳 바로 아래에 받아진다.

 

끝.

Posted by pat98

06-14 17:01
Flag Counter
Yesterday
Today
Total

글 보관함

최근에 올라온 글

달력

 « |  » 2026.6
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

최근에 달린 댓글