I'm trying to crawl a directory on a website and basically download everything in it. The structure is simple enough(but there are also multiple folders), but there is one thing that makes wget choke up. The source looks something like this:
<a href="index.php?path=/blah/whatever&download=resource.txt"><img... /></a> .... <a href="/blah/whatever/resource.txt">resource.txt"</a>
Both of the links work, but they are both the same thing. So wget will download the same file twice. How can I make wget ignore the first one? Or if you have a better crawler suggestion that works in Linux(or OpenBSD) then suggest it instead
I've tried using the reject list as so:
wget -r -R index.php\*\&download\* http://url
but this doesn't seem to actually do anything. It will still download the duplicate URLs