Re: [Bug-wget] Recursive wget with URL filter/under certain (non-parent) directory?
Yang Zhang yanghates...@gmail.com writes: I mentioned --include-directories in my original email. I couldn't figure out how to use it to this effect. Could you demonstrate? have you already tried the following one? wget -r -I /host/foo/ http://host/foo/bar/baz/index.cgi?page=1 Giuseppe
Re: [Bug-wget] Recursive wget with URL filter/under certain (non-parent) directory?
(05/09/2011 12:39 PM), Giuseppe Scrivano wrote: Yang Zhang yanghates...@gmail.com writes: I mentioned --include-directories in my original email. I couldn't figure out how to use it to this effect. Could you demonstrate? have you already tried the following one? wget -r -I /host/foo/ http://host/foo/bar/baz/index.cgi?page=1 Shouldn't that be just -I /foo/ ? -- Micah J. Cowan http://micah.cowan.name/
Re: [Bug-wget] Recursive wget with URL filter/under certain (non-parent) directory?
Micah Cowan mi...@cowan.name writes: have you already tried the following one? wget -r -I /host/foo/ http://host/foo/bar/baz/index.cgi?page=1 Shouldn't that be just -I /foo/ ? Yeah, sure :-) Thanks, Giuseppe
Re: [Bug-wget] Recursive wget with URL filter/under certain (non-parent) directory?
Thanks, I was specifying the directory differently. On Mon, May 9, 2011 at 12:39 PM, Giuseppe Scrivano gscriv...@gnu.org wrote: Yang Zhang yanghates...@gmail.com writes: I mentioned --include-directories in my original email. I couldn't figure out how to use it to this effect. Could you demonstrate? have you already tried the following one? wget -r -I /host/foo/ http://host/foo/bar/baz/index.cgi?page=1 Giuseppe -- Yang Zhang http://yz.mit.edu/
Re: [Bug-wget] Recursive wget with URL filter/under certain (non-parent) directory?
I mentioned --include-directories in my original email. I couldn't figure out how to use it to this effect. Could you demonstrate? On Mon, May 9, 2011 at 12:07 AM, Giuseppe Scrivano gscriv...@gnu.org wrote: Yang Zhang yanghates...@gmail.com writes: Is it possible to start at http://host/foo/bar/baz/index.cgi?page=1 and recursively fetch any content under http://host/foo/? (Can't start at http://host/foo/ since that's not a valid page.) I looked at the various options to control what wget recursive fetches, such as --no-parent and --include-directories, but I can't seem to find an option to accomplish the above, e.g. a simple URL substring filter. Thanks in advance. I think you are looking for --include-directories. Giuseppe -- Yang Zhang http://yz.mit.edu/