bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Bug-wget] How to ignore link like "index.html?lang=ja"?


From: Tony Lewis
Subject: RE: [Bug-wget] How to ignore link like "index.html?lang=ja"?
Date: Thu, 3 Jun 2010 17:36:33 -0700

Guillaume Turri wrote:

> In fact, why is this option treated after a download?

When mirroring, all HTML files have to be downloaded (whether or not it is
desired to ultimately keep the HTML file) in order to find all the
interesting file. For example:

wget http://www.somesite.com/index.html --mirror --accept=pdf

says to accept (that is keep) only PDF files that are referenced on the
site. If you didn't download the HTML files looking for links to PDF files,
you would not download anything at all.

There is a strong case to be made to ignore files that do not have a known
HTML suffix (although that might not always be the right action as any
suffix could potentially include HTML content). Downloading .zip or .tar
files with --accept=pdf doesn't make much sense (to the human watching wget
run anyway), but getting the logic right will be tricky.

Tony





reply via email to

[Prev in Thread] Current Thread [Next in Thread]