HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: Downloading .mov from site (ASP and JavaScript
Author: Abel Deuring
Date: 09/16/2004 14:14
 
> I want to download all videos (demo videos) that are linked
> from the site. Unfortunately the links are not hardcoded but
> were used by a JavaScript function. The link then is a ASP
> link that gets the filename from a database.

Javascript allows a virtually unlimited number of ways 
to insert general content and especially links into an HTML 
page. I'm afraid that a general purpose mirror program like 
httrack will never be able to parse all possible methods of 
"encoding" links in Javascript. But I'm not the author of 
httrack -- Xavier may have another viewpoint.

<adv>But you might consider to write a little Python module 
for my httrack-py plugin. In such a module, you can search 
with a regex like r'javascript:launchit\((.*)\);' for the 
"missing links" and add some simple <a href> tags to the 
page, before it is parsed by httrack. When httrack has 
parsed the page, you can remove these inserted links 
(methods preprocess_html and postprocess_html).
</adv>

Abel
 
Reply Create subthread


All articles

Subject Author Date
Downloading .mov from site (ASP and JavaScript)

09/16/2004 09:35
Re: Downloading .mov from site (ASP and JavaScript

09/16/2004 14:14
Re: Downloading .mov from site (ASP and JavaScript)

09/17/2004 07:49
Re: Downloading .mov from site (ASP and JavaScript

09/17/2004 15:37
Re: Downloading .mov from site (ASP and JavaScript

09/17/2004 15:40




0

Created with FORUM 2.0.11