capturing stdout from lynx..

Enigma Curry workbee at gmail.com
Sat Mar 11 05:39:29 CET 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