I want to "scan" a website content, recursively, and pipe it to another program.
When I run:
wget -r -O - $SITE
I get
WARNING: combining -O with -r or -p will mean that all downloaded content
will be placed in the single file you specified.
Then, "download" process starts, but hangs after the first page is done. By "hangs" I mean, nothing seems to be going on, nor do I get back the command prompt until I hit Ctrl+C.
I would prefer avoiding the option outputting wget to a temporary folder and scan file by file, as well as writing my own scrapper which seems to be the most redundant act one can think of at the end of 2012.
-Oargument ? it is intended to output the results to a file. 2: I would like you will explain more on what your intentions are, since it is hard for me to understand & help you (i hope). – Hanan N. Dec 25 '11 at 10:31Similarly, using ‘-r’ or ‘-p’ with ‘-O’ may not work as you expect: Wget won't just download the first file to file and then download the rest to their normal names: all downloaded content will be placed in file. This was disabled in version 1.11, but has been reinstated (with a warning) in 1.11.2, as there are some cases where this behavior can actually have some use.– Hanan N. Dec 25 '11 at 10:32-O -is the way to get results routed to stdout, rather than to a file on disk, and this is what I am doing here. – Tzury Bar Yochay Dec 25 '11 at 11:44-q. – Hanan N. Dec 25 '11 at 12:09