Jan Schenkel janschenkel at
Sun Sep 29 15:53:00 EDT 2002

Hi Bryan,

The code for getting the data from the html-page at
that exact url would be as simple as :

put URL
into tHTMLData

You would then of course have to go through the
information you get, strip off the header information,
and work your way through the body.
If you would want the data of some other day, you
could try the result of :

put "29" into tDay
put "9" into tMonth
put "2002" into tYear
put URL
& tDay & "&Mo=" & tMonth & "&Yr=" & tYear) into

Parsing the data to get your information out of it, is
a whole different set of fun. After having just had a
peek at the HTML-source from within IE, I'd suggest
you try something similar to:

put lineOffset("<pre", tHTMLData) + 1 into tFirstLine
put lineOffset("</pre", tHTMLData) - 1 into tLastLine
get line tFirstLine to tLastLine of tHTMLData

For this particular page, that should nicely split off
all the HTML-code and leave you with the data that
interests you.

If you're having problems getting the data, you might
follow Dave's suggestion to put a user-agent in the

Hope this helped,

Jan Schenkel.

"As we grow older, we grow both wiser and more foolish
at the same time."  (De Rochefoucald)

--- Bryan McCormick <brymac at> wrote:
> Ah, I see. I think. But as I've never had to do this
> before, and presuming 
> I'm willing to slog through and experiment, what
> does the code for this 
> look like?
> do I do a POST and then pass the URL each time for
> each?
> how do I assemble all these header fields and pass
> them? are they all CRLF 
> separated along the lines of  HEAD&CRLF&SEC&CRLF...
> that i concatenate 
> together? what do I so once i've passed them?  i'm
> afraid i'm a total babe 
> in the woods with this sort of thing.
> btw this script is being written strictly as a
> personal convenience for 
> doing some math transforms on the data sets which
> are totally public. 
> unfortunately CBOE by making a handy calendar based
> script driven interface 
> for the casual browser has created a nightmare to
> get at the data. and 
> oddly there isn't even a "pay" alternative for this.
> you have to go to the 
> site and click on the calendar interface to load
> each day. the alternative 
> is hand-posting these into excel which with months
> of data quickly becomes 
> a horrible thing to do.

Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!

More information about the Use-livecode mailing list