Re: How to save what I see (2)

2002-01-13 Thread Hrvoje Niksic

Robin B. Lake [EMAIL PROTECTED] writes:

 In a prior posting, I asked about saving an image from a Web page
 instead of just saving the information necessary to re-retrieve that
 image.  I was advised to try -p -k --html-extension
 
 Using wget-1.8.1-pre2, I still don't see the image data saved in
 the .html file wget creates.

`wget -p -k --html-extension URL' is supposed to do these things:

1. download the HTML file under URL
1a. rename the file to `.html' if it doesn't already have that
extension.
2. download the inline images and style sheets needed to display that
   HTML file, provided they are on the same host.
3. convert the links in the HTML file so that they point either
   locally (in case of downloaded images) or to the remote location
   (in case of links to external resources).

Which of these is not happening when you run it?

(To make Wget access other hosts, use `--include-domains b.mktw.net'.)

 ./wget -nH -p -k --html-extension -q -O /QoI/NDX/working/CHARTS/$myday+NDX.html 
'http://bigcharts.marketwatch.com/quickchart/quickchart.asp?symb=%24NDXsid=0o_symb=%24NDXx=60y=15freq=9time=1'
   

-O will not work with -p.  This is a limitation in how -p currently
works.



Re: How to save what I see (2)

2002-01-01 Thread Robin B. Lake

In a prior posting, I asked about saving an image from a Web page
instead of just saving the information necessary to re-retrieve that
image.  I was advised to try -p -k --html-extension

Using wget-1.8.1-pre2, I still don't see the image data saved in
the .html file wget creates.  Another problem is that while my
shell script:

./wget -nH -p -k --html-extension -q -O /QoI/NDX/working/CHARTS/$myday+NDX.html 
'http://bigcharts.marketwatch.com/quickchart/quickchart.asp?symb=%24NDXsid=0o_symb=%24NDXx=60y=15freq=9time=1'
   

works in one directory, run from another directory I get:

rbl% sh chartshell
1231

nothing to do.

nothing to do.
^C

Happy New Year to all!

Cheers,
Robin Lake
[EMAIL PROTECTED]



Re: How to save what I see?

2001-12-30 Thread Hrvoje Niksic

Robin B. Lake [EMAIL PROTECTED] writes:

 I'm using wget to save a tick chart of a stock index each night.
 
 wget -nH -q -O /QoI/working/CHARTS/$myday+OEX.html 
'http://bigcharts.marketwatch.com/quickchart/quickchart.asp?symb=%24OEXsid=0o_symb=%24OEXx=60y=15freq=9time=1'
   
[...]
 What is saved by Wget is the HTML, so that when I go to get the saved image,
 say a week from now, what I get is the image for that future day, not for
 the day I saved!
 
 Is there a way to get Wget to save the image?

Use something like:

wget -p -k --html-extension '...URL...'

That should make sure that the image is downloaded along with the
page, that the `.asp' file is renamed to `.html', and that links to
the images are converted for local viewing.

Usage of the latest version of Wget (now 1.8.1) highly recommended.



How to save what I see?

2001-12-29 Thread Robin B. Lake

I'm using wget to save a tick chart of a stock index each night.

wget -nH -q -O /QoI/working/CHARTS/$myday+OEX.html 
'http://bigcharts.marketwatch.com/quickchart/quickchart.asp?symb=%24OEXsid=0o_symb=%24OEXx=60y=15freq=9time=1'
   

The Web site returns an image, whose HTML is:
IMG 
SRC=http://chart.bigcharts.com/bc3/quickchart/chart.asp?symb=GEcompidx=a%3A0ma=0maval=9uf=0lf=1lf2=0lf3=0type=2size=2state=8sid=^C48
style=320time=1freq=9nosettings=1rand=6148mocktick=1rand=4692 BORDER=0 
WIDTH=579 HEIGHT=335BR

(I had to break the line for my e-mail editor).

What is saved by Wget is the HTML, so that when I go to get the saved image,
say a week from now, what I get is the image for that future day, not for
the day I saved!

Is there a way to get Wget to save the image?

Thanks,
Robin Lake
[EMAIL PROTECTED]