[twill] StringIO?

James Cameron james.cameron at hp.com
Tue Mar 21 13:32:07 PST 2006


Are you sure you are not digging too deeply?  I've used state.get_html()
to obtain a string that contains the result page text.  Also save_html
to write it to a file.

from twill.commands import *
from twill.commands import state

go('http://example.com/')
save_html('example.html')
print state.get_html()

-- 
James Cameron
http://ftp.hp.com.au/sigs/jc/



More information about the twill mailing list