It is my understanding that if an HTML file matches a reject pattern during 
recursive 
download, the file is still downloaded, parsed for its links and then deleted. 
The 
manual hints at this behavior by saying

"Note that these two options [-R and -A] do not affect the downloading of html
files; 
Wget must load all the htmls to know where to go at
all—recursive retrieval would 
make no sense otherwise."

The given argument is not convincing; if I wish to declare that HTML files 
matching 
a certain pattern should never be downloaded, looked at, and followed, then 
that does 
not in any way pervert the logic of recursive downloads. 

I can see that it might be useful to parse HTML files and delete them 
afterwards, 
for instance to pull all the gifs off a given website. But there should also be 
an option
that allows the pruning of recursive download trees based on HTML filename 
patterns. 
The most common use case for such an option would be to exclude all dynamically 
created content.

Axel






Reply via email to