Re: PyParsing module or HTMLParser

2005-03-31 Thread Paul McGuire
Yes, drop me a note if you get stuck. -- Paul base64.decodestring('cHRtY2dAYXVzdGluLnJyLmNvbQ==') -- http://mail.python.org/mailman/listinfo/python-list

Re: PyParsing module or HTMLParser

2005-03-30 Thread Lad
Paul, thanks a lot. It seems to work but I will have to study the sample hard to be able to do the exercise (the extraction of the description ) successfully. Is it possible to email you if I need some help with that exercise? Thanks again for help Lad. -- http://mail.python.org/mailman/listinfo

Re: PyParsing module or HTMLParser

2005-03-30 Thread Paul McGuire
Lad - Well, here's what I've got so far. I'll leave the extraction of the description to you as an exercise, but as a clue, it looks like it is delimited by "View Detail " at the beginning, and "Quantity: 500" at the end, where 500 could be any number. This program will print out: ['Title:', 'S

Re: PyParsing module or HTMLParser

2005-03-30 Thread Lad
Paul, Thank you for your reply. Here is a test page that I woul like to test with PyParsing http://www.ourglobalmarket.com/Test.htm >From that I would like to extract the tittle ( it is below Lanjin Electronics Co., Ltd. ) (Sell 2.4GHz Wireless Mini Color Camera With Audio Function ) descriptio

Re: PyParsing module or HTMLParser

2005-03-29 Thread Paul McGuire
La - In general, I have shied away from doing general-purpose HTML parsing with pyparsing. It's a crowded field, and it's likely that there are better candidates out there for your problem. I've heard good things about BeautifulSoup, but I've also heard from at least one person that they prefer

Re: PyParsing module or HTMLParser

2005-03-28 Thread EuGeNe
Lad wrote: I came across pyparsing module by Paul McGuire. It seems to be nice but I am not sure if it is the best for my need. I need to extract some text from html page. The text is in tables and a table can be inside another table. Is it better and easier to use the pyparsing module or HTMLpar

Re: PyParsing module or HTMLParser

2005-03-28 Thread Bill Mill
On 28 Mar 2005 12:01:34 -0800, Lad <[EMAIL PROTECTED]> wrote: > I came across pyparsing module by Paul McGuire. It seems to be nice but > I am not sure if it is the best for my need. > I need to extract some text from html page. The text is in tables and a > table can be inside another table. > Is