Re: capturing stdout from lynx..

2006-03-13 Thread [EMAIL PROTECTED]
perfect! that worked great! thank you! -- http://mail.python.org/mailman/listinfo/python-list

capturing stdout from lynx..

2006-03-10 Thread [EMAIL PROTECTED]
i have a huge database that contains large amounts of html that i need to translate to ascii.. i have tried using html2text.py: http://www.aaronsw.com/2002/html2text/ but i could not figure out how to import it and use it as a library without getting errors everywhere.. so i decided to try

Re: capturing stdout from lynx..

2006-03-10 Thread Enigma Curry
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 -- http://mail.python.org/mailman/listinfo/python-list