The following fails, with error messages that don't make sense to me.

WGET -r -l2 -k -K -p -np -nd "http://thomas.loc.gov/cgi-bin/cpquery/0?r_t=a&r_n=107-791&submit=Search&variant=y&acronym=n&syndict=n&spq=n&sort_by_docid=n&d_q=on&dbname=cp107&maxdocs=100&report=hr791.107&xform_type=3&sel=TOCLIST&";

The URL is a valid one. (It's all one line, wrapped as you may receive it.) The URL works when copy/pasted into the address box of a browser.

It's the Table of Contents page of an html version of House Rept. 107-791. HTML is much easier to read than the .pdf version (which can be downloaded as a single file) or the ASCII version (which can also be downloaded as a single file.

I want to "snag" the entire document, which consists of "chapters" linked to the headings in the Table of Contents document.

It fails with different error messages depending upon whether I put the URL in quotation marks (as above) or not.

I haven't the foggiest idea how to obtain a "direct" address/URL for the document (Table of Contents) or for the links.

If WGET can't handle this is there any other application that will work here?

Thanks,

Fred Holmes

Reply via email to