Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

This question follows from: How do I create a local copy of a complete website section from OSX using curl?

After discovering OSX's native curl wouldn't do this task I downloaded wget from here: http://www.techtach.org/wget-prebuilt-binary-for-mac-osx-lion

But performing:

./wget -r -l 0 https://ccrma.stanford.edu/~jos/mdft/

takes hours and installs a ton of other stuff I didn't want that ISN'T contained in this folder:

http://cl.ly/ENKr

Moreover opening a particular page, many of the images are missing:

http://cl.ly/ELXG

This may be because I aborted the transfer after a few hours(!)

How do I do this properly?

share|improve this question
    
Your image links aren't inline-able. –  Mat Feb 19 '12 at 9:26
    
@Mat, I will fix it as soon as I get 10 rep & gain the permission –  P-i- Feb 19 '12 at 13:58
add comment

1 Answer

up vote 4 down vote accepted

try adding:

--no-parent

"Do not ever ascend to the parent directory when retrieving recursively. This is a useful option, since it guarantees that only the files below a certain hierarchy will be downloaded."

In my experience it also prevents downloading from other sites.

share|improve this answer
    
That's great, thanks! don't know why but it still contains some crud from parent cl.ly/EMoO but all of the extra adds up to only a few k. –  P-i- Feb 19 '12 at 14:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.