Difference between revisions of "Wget"

From Alessandro's Wiki
Line 10: Line 10:
* Mirror an entire website
* Mirror an entire website


wget --mirror -w 2 -p --html-extension --convert-links http://www.yourdomain.com
* wget -m -p -l 0 -E -k http://site
*; and also
*; wget -k -l 0 -m -nh -r http://site
* and...
*; wget --mirror -w 2 -p --html-extension --convert-links http://site
* another one
*; wget -o wget.log --html-extension --restrict-file-names=windows --convert-links --recursive --level=inf --page-requisites --wait=0 --quota=inf --reject="*_form, *@*, sitemap, RSS" http://site
 
* exclude a directory:
--exclude-directories="directory1,dir2"

Revision as of 09:17, 23 February 2011

  • Limitare la banda da utilizzare per scaricare.
wget --limit-rate=60k 
  • resume downloading (Continue a to download an incomplete file):
wget -c http://www.yourdomain.com/bigfile.bin
  • Download into filename...
wget http://www.example.com -O index.html
  • Mirror an entire website
  • wget -m -p -l 0 -E -k http://site
    and also
    wget -k -l 0 -m -nh -r http://site
  • and...
    wget --mirror -w 2 -p --html-extension --convert-links http://site
  • another one
    wget -o wget.log --html-extension --restrict-file-names=windows --convert-links --recursive --level=inf --page-requisites --wait=0 --quota=inf --reject="*_form, *@*, sitemap, RSS" http://site
  • exclude a directory:
--exclude-directories="directory1,dir2"