471,337 Members | 1,296 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Html parser


Could you recommend an html parser that works with python (jython
2.2)? HTMLParser does not seem to be in this library. To test some
of our browser based (mailnly php) code I seek for field names and
values associated with them.

Thanks,

jh

Jun 15 '07 #1
4 1369
On Fri, Jun 15, 2007 at 07:11:56AM -0700, HMS Surprise wrote:
Could you recommend an html parser that works with python (jython
2.2)?
I'm new here, but I believe BeautifulSoup is the canonical
answer:
http://www.crummy.com/software/BeautifulSoup/

--
Stephen R. Laniel
st***@laniels.org
Cell: +(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
Jun 15 '07 #2
Thanks,

jh

Jun 15 '07 #3
On Jun 15, 7:11 am, HMS Surprise <j...@datavoiceint.comwrote:
Could you recommend an html parser that works with python (jython
2.2)? HTMLParser does not seem to be in this library. To test some
of our browser based (mailnly php) code I seek for field names and
values associated with them.

Thanks,

jh
Twill:
http://twill.idyll.org/
Don't know about the jython part....

Jun 15 '07 #4
In article <ma***************************************@python. org>,
Stephen R Laniel <st***@laniels.orgwrote:
On Fri, Jun 15, 2007 at 07:11:56AM -0700, HMS Surprise wrote:
Could you recommend an html parser that works with python (jython
2.2)?

I'm new here, but I believe BeautifulSoup is the canonical
answer:
http://www.crummy.com/software/BeautifulSoup/
It is, but personally I'm a fan of Connelly Barnes' htmldata module:
http://oregonstate.edu/~barnesc/htmldata/

Much easier to use than BeautifulSoup IMO.

--
Philip
http://NikitaTheSpider.com/
Whole-site HTML validation, link checking and more
Jun 16 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by YoBro | last post: by
4 posts views Thread by Leif K-Brooks | last post: by
reply views Thread by Himanshu Garg | last post: by
3 posts views Thread by Himanshu Garg | last post: by
4 posts views Thread by bariole | last post: by
82 posts views Thread by Eric Lindsay | last post: by
8 posts views Thread by Lachlan Hunt | last post: by
2 posts views Thread by David Virgil Hobbs | last post: by
reply views Thread by june | last post: by
4 posts views Thread by Jackie | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.