I have tried wget -m wget -r and a whole bunch of variations. I am getting some of the images on http://site.com, one of the scripts, and none of the CSS, even with the fscking -p parameter. The only HTML page is index.html and there are several more referenced, so I am at a loss. curlmirror.pl on the cURL developers website does not seem to get the job done either. Is there something I am missing? I have tried different levels of recursion with only this URL, but I get the feeling I am missing something. Long story short, some school allows its students to submit web projects, but they want to know how they can collect everything for the instructor who will grade it, instead of him going to all the externally hsoted sites.

UPDATE: I think I figured out the issue. I though the links to the other pages were in the index.html page that downloaded. I was way off. Turns out the footer of the page, which has all the navigation links, is handled by a JavaScript file Include.js, which reads JLSSiteMap.js and some other JS files to do page navigation and the like. As a result, wget does not pick up an other dependencies because a lot of this crap is handled not on web pages. How can I handle such a website? This is one of several problem cases. I assume little can be done if wget cannot parse JavaScript.

link|improve this question

59% accept rate
1  
Can you give a actually use case that fails for you? – becomingwisest Feb 10 '11 at 22:16
@Christopher I am still waiting for the owner's permission. Does my explanation help? – alharaka Feb 11 '11 at 15:13
feedback

1 Answer

Maybe something like this:

http://www.boutell.com/newfaq/creating/mirroring.html

or this:

http://fosswire.com/post/2008/04/create-a-mirror-of-a-website-with-wget/

link|improve this answer
They really told me some stuff I already know, namely how awesome wget -r and wget -m can be. I just need to get there, haha. – alharaka Feb 11 '11 at 15:12
feedback

Your Answer

 
or
required, but never shown

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