capturing stdout from lynx..

Enigma Curry workbee at gmail.com
Fri Mar 10 23:39:29 EST 2006


Does this do what you want?

import os
filename = "test.html"
cmd = os.popen("lynx -dump %s" % filename)
output = cmd.read()
cmd.close()
print output




More information about the Python-list mailing list