Re: [python-win32] Parse HTML String only not file

2010-06-17 Thread Randy Syring
We have had great success with PyQuery for getting API access to XML data: http://pypi.python.org/pypi/pyquery -- Randy Syring Intelicom 502-644-4776 "Whether, then, you eat or drink or whatever you do, do all to the glory of God." 1 Cor 10:31 Tim Robert

Re: [python-win32] Parse HTML String only not file

2010-06-17 Thread Tim Roberts
On 6/17/2010 11:09 AM, Mauricio Martinez Garcia wrote: > Hi, how can parse an HTML String. > I need parse next Line : > > 'BSCS > statusstringnoneTopCre_lifeinteger0' That's not HTML. It's XML. You CAN parse this with the SGMLParser (since XML is a variant of SGML), but you might consider whethe

[python-win32] Parse HTML String only not file

2010-06-17 Thread Mauricio Martinez Garcia
Hi, how can parse an HTML String. I need parse next Line : 'BSCS statusstringnoneTopCre_lifeinteger0' And this is the program: == #!/usr/bin/env python from sgmllib import SGMLParser import urllib import pdb class ParserHTML(SGMLParser): #pdb