Pages

Tuesday, November 28, 2017

wget tải file từ thư mục web

You may use this in shell:
wget -r --no-parent http://abc.tamu.edu/projects/tzivi/repository/revisions/2/raw/tzivi/
The Parameters are:
-r     //recursive Download
and
--no-parent // Don´t download something from the parent directory
If you don't want to download the entire content, you may use:
-l1 just download the directory (tzivi in your case)

-l2 download the directory and all level 1 subfolders ('tzivi/something' but not 'tivizi/somthing/foo')  
And so on. If you insert no -l option, wget will use -l 5 automatically.

If you insert a -l 0 you´ll download the whole Internet, because wget will follow every link it finds



Great, so to simplify for the next reader: wget -r -l1 --no-parent http://www.stanford.edu/~boyd/cvxbook/cvxbook_additional_exe‌​rcises/ was the answer for me. Thanks your answer. – isomorphismes Jun 21 '14 at 17:05


Link: https://stackoverflow.com/questions/17282915/download-an-entire-directory-using-wget