HTML Parsing

2007-02-10 Thread mtuller
Alright. I have tried everything I can find, but am not getting anywhere. I have a web page that has data like this: LETTER 33,699 1.0 What is show is only a small section. I want to extract the 33,699 (which is dynamic) and set the value to a variable so that I can insert it into a databa

Parsing HTML

2007-02-10 Thread mtuller
Alright. I have tried everything I can find, but am not getting anywhere. I have a web page that has data like this: LETTER 33,699 1.0 What is show is only a small section. I want to extract the 33,699 (which is dynamic) and set the value to a variable so that I can insert it into a databa

Re: Parsing HTML

2007-02-08 Thread mtuller
I was asking how to escape the quotation marks. I have everything working in pyparser except for that. I don't want to drop everything and go to a different parser. Can someone else help? > > > I am trying to parse a webpage and extract information. > > BeautifulSoup is a great Python module fo

Parsing HTML

2007-02-08 Thread mtuller
I am trying to parse a webpage and extract information. I am trying to use pyparser. Here is what I have: from pyparsing import * import urllib # define basic text pattern spanStart = Literal('') spanEnd = Literal('') printCount = spanStart + SkipTo(spanEnd) + spanEnd # get printer addresses p