9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] webscript
@ 2005-10-07  7:01 Russ Cox
  2005-10-07 11:31 ` Eric Van Hensbergen
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Russ Cox @ 2005-10-07  7:01 UTC (permalink / raw)
  To: 9fans

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-12-17 21:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-07  7:01 [9fans] webscript Russ Cox
2005-10-07 11:31 ` Eric Van Hensbergen
2005-10-07 19:09   ` lucio
2005-10-07 11:42 ` Dimitry Golubovsky
2005-10-08  2:03   ` Jack Johnson
2005-10-07 17:06 ` Bakul Shah
2005-10-07 18:11   ` Skip Tavakkolian
2005-10-07 20:11     ` erik quanstrom
2005-12-17 21:26 ` Caerwyn Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).