| > 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 | |