Python equivalent of "lynx -dump"?

lewst lewst at yahoo.com
Mon Mar 27 22:08:29 CEST 2000


I'm looking for a functional equivalent of the "-dump" option to the
lynx web-browser in Python.  "-dump" dumps the formatted output of an
HTML document.

Right now I have a python program that captures the output of a
webpage and prints it like so:

        lynxcmd = "lynx -dump %s" %url
        data = os.popen(lynxcmd).read()
        print data

I would like to do this entirely within python instead of relying on
lynx to make the program more portable.

How can I capture only the formatted output of an HTML page within
Python?


__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com




More information about the Python-list mailing list