Seems like I recall seeing an Expect derrivative that worked with
websites - can't seem to google it now.  Not sure it worked as easily
as you are describing, but it might be a step in the right direction.

         -eric

On 10/7/05, Russ Cox <[EMAIL PROTECTED]> wrote:
> I would like to be able to write scripts like this:
>
>         load "http://apc-reset/outlets.htm";
>         find "yoshimi"
>         nearest option, set "Immediate Reboot"
>         submit
>
> or like this:
>
>         load "http://www.fedex.com/Tracking";
>         find form
>         enter "792544024753"
>         submit
>
>         if (find "No information") {
>            select enclosing td
>            print
>         } else if (find "Ship date") {
>            select enclosing table
>            select enclosing table
>            print
>         } else {
>            print ">>> Unexpected Results\n"
>            print
>         }
>
> Does anyone know of programs/languages that let you
> script web sessions like that?  Searching around finds lots
> of mentions of web scraping but no actual programs.
>
> I have a rough idea of the general structure of the language
> and grammar, and I think that libhtml does most of the
> heavy lifting already.
>
> Anyone interested in working on this?
>
> Russ
>

Reply via email to