Python web client anyone?

Richard Jones richard at bizarsoftware.com.au
Sun Oct 14 21:08:45 EDT 2001


On Monday 15 October 2001 10:57, Richard Jones wrote:

> My SimpleDOM module will do this. Here's some off-the-top-of-my-head usage:
> >>> import SimpleDOM, urllib
> >>> page = urllib.urlopen('http://www.w3c.org/').read()
> >>> dom = SimpleDOM.SimpleDOMParser()
> >>> dom.parseString(page)
> >>> len(dom.getByName('a'))

Sorry, bad cutnpaste there. There's a valid example in the module docstring 
though.


    Richard




More information about the Python-list mailing list