Posts

Showing posts with the label wget

Downloading from web folders without index.html file

Using the following wget 1-liners, it is possible to download a folders/files when there is no index.html files present. wget -r --no-parent http://www.site.com/folder_with_no_index/ (tested and working) wget -r -nH --cut-dirs=2 --no-parent --reject="index.html*" http://mysite.com/dir1/dir2/data

wget and destination directory

If you want wget to download to a specific folder, use the following format: wget -P ~/dest/dir www.foo.com/myfile.png