Download File dan Web menggunakan wget

From OnnoWiki
Jump to navigation Jump to search

Beberapa Contoh Penggunaan wget

Download Sebuah File

Mendownload file menggunakan wget

# wget -c --limit-rate=20k url-file-yang-akan-di-download file-tujuan

contoh

# wget -c --limit-rate=20k http://opensource.telkomspeedy.com/repo/iso/JauntyRepoDVD/ubuntu-9.04-repository-i386-2_contrib.iso /home/library/iso/ubuntu-dvd-9.04/ubuntu-9.04-repository-i386-2_contrib.iso


Mengambil database SpeedyWiki

wget http://125.160.17.21/speedyorari/view.php?file=datawiki/wikidb.sql.gz -O /home/library/library/datawiki/wikidb.sql.gz 
wget http://125.160.17.21/speedyorari/view.php?file=datawiki/images.tar.gz -O /home/library/library/datawiki/images.tar.gz 


Download Recursive

wget -r <URL>
wget  -r -p -U Mozilla http://www.stupidsite.com/restricedplace.html
wget --wait=20 --limit-rate=20K -r -p -U Mozilla http://www.stupidsite.com/restricedplace.html

Supaya jangan download directory di bawahnya

--no-parent

Contoh

wget --no-parent -r -p -U Mozilla http://www.everyayah.com/data/Abdurrahmaan_As-Sudais_192kbps/


Meneruskan Download

switch -c untuk meneruskan (continue) proses download / retrieve

wget -c --no-parent -r -p -U Mozilla http://www.everyayah.com/data/Abdurrahmaan_As-Sudais_192kbps/
wget -c --no-parent --limit-rate=8K -r -p -U Mozilla http://www.everyayah.com/data/Abdurrahmaan_As-Sudais_192kbps/


Menset Level Mirror

Level Mirror akan menentukan seberapa dalam web yang akan di copy, misalnya

 wget -c --Level=5 -r -p -U Mozilla http://www.web.com/

Pranala Menarik