ANN: ClientForm 0.1.9 and 0.0.12 released (first 0.1.x stable release)

John J. Lee jjl@pobox.com
28 Sep 2003 17:52:49 +0100


http://wwwsearch.sourceforge.net/ClientForm/

0.1.9 is the first stable release of 0.1.x.

Changes from 0.1.8b to 0.1.9:
 * HTMLForm.attrs now works (the dict contents were incorrect).

Equivalent changes were made in 0.0.12.


Requires Python >= 1.5.2.

ClientForm is a Python module for handling HTML forms on the client
side, useful for parsing HTML forms, filling them in and returning the
completed forms to the server.  It has developed from a port of Gisle
Aas' Perl module HTML::Form, from the libwww-perl library, but the
interface is not the same.

Simple example:

 from urllib2 import urlopen
 from ClientForm import ParseResponse

 forms = ParseResponse(urlopen("http://www.acme.com/form.html"))
 form = forms[0]
 print form
 form["author"] = "Gisle Aas"

 # form.click returns a urllib2.Request object
 # (see HTMLForm.click_request_data.__doc__ if you're not using urllib2)
 response = urlopen(form.click("Thanks"))


John