Skip to content

Latest commit

 

History

History
50 lines (41 loc) · 1.88 KB

wget.md

File metadata and controls

50 lines (41 loc) · 1.88 KB

Wget

All Files Located On A Web Page

wget -r -A.pdf http://www.example.com/page-with-pdfs.htm

Every PDF Including PDF’s On Secondary Pages

wget -r -l1 -A.pdf http://www.example.com/page-with-pdfs.htm

Files from a List

wget -i your_list.txt

Files from a List (Background Process)

wget -b -i your_list.txt

Continue/resume broken download [1]

wget -c -b -i your_list.txt

User Agent in Wget [2]

Ketika dapat mengunduh melalui browser, tetapi gagal saat menggunakan wget.

wget -d -b -i -U "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36" "https://DOMAIN.NAM/SUB-URL/EXAMPLE-FILE-WILL-BE-DOWNLOAD.iso?md5=klFg9hj-jcWcIDkYCRKs8Q&expires=1627569342"

Kill background process [3]

pkill -9 wget

Actual name

wget --content-disposition https://www.syntevo.com/downloads/smartgit/smartgit-20_1_2.deb

Reference

  1. Use wget To Download All PDF Files Listed On A Web Page, wget All PDF Files In A Directory
  2. Download files from a list
  3. Mirror Site 1 Level Deep
  4. fetch a directory with arbitrary files in it
  5. Force wget to use actual filename