Re: [SLUG] Wget and javascript

From: Paul M Foster (paulf@quillandmouse.com)
Date: Tue Mar 08 2005 - 13:36:25 EST


On Tue, Mar 08, 2005 at 10:14:56AM -0500, aaron steimle wrote:

> Paul M Foster wrote:
>
> >Folks:
> >
> >I tried to wget a site, and much of the site was omitted. It looks like
> >wget didn't cull through the javascript menu to find links in that file
> >as well, which explains a lot of the omissions. Even when I tried to
> >pull down that file directly, it did not follow links embedded in the
> >file.
> >
> >Anyone know how to make wget treat javascript files like html files and
> >follow/download their links?
> >
> >Paul
> >
> >
> From http://www.gnu.org/software/wget/faq.html#3.6 :
>
> 3.6 Does GNU wget understand JavaScript?
>
> At the moment GNU wget doesn't feature JavaScript support and is not
> capable of performing recursive retrieval of URLs included in JavaScript
> code.
>
> Since it is impossible to extract URLs from JavaScript by merely parsing
> it -- you need to actually execute it -- adding JavaScript support to
> GNU wget would require the development of a JavaScript parser to be
> included in the package.
>
> JavaScript support may be included in the next major release (2.0) of
> GNU wget.

You da man. Thanks.

Paul
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:23:47 EDT