From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Fri, 7 Oct 2005 06:31:14 -0500 From: Eric Van Hensbergen To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] webscript In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: Topicbox-Message-UUID: 95ff85f2-ead0-11e9-9d60-3106f5b1d025 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 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 >