389,632 Members | 4,851 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 389,632 IT Pros & Developers. It's quick & easy.

HTML Parser for Jython

Falcolas
P: n/a
Does anybody know of a decent HTML parser for Jython? I have to do
some screen scraping, and would rather use a tested module instead of
rolling my own.

Thanks!

GP

Oct 17 '07 #1
Share this Question
Share on Google+
4 Replies


Stefan Behnel
P: n/a
Falcolas wrote:
Does anybody know of a decent HTML parser for Jython? I have to do
some screen scraping, and would rather use a tested module instead of
rolling my own.
Not sure if it works, but have you tried BeautifulSoup? Or maybe an older
version of it?

Stefan
Oct 17 '07 #2

Carsten Haese
P: n/a
On Wed, 2007-10-17 at 17:36 +0200, Stefan Behnel wrote:
Falcolas wrote:
Does anybody know of a decent HTML parser for Jython? I have to do
some screen scraping, and would rather use a tested module instead of
rolling my own.

Not sure if it works, but have you tried BeautifulSoup? Or maybe an older
version of it?
Recent releases of BeautifulSoup need Python 2.3+, so they won't work on
current Jython, but BeatifulSoup 1.x will work.

--
Carsten Haese
http://informixdb.sourceforge.net
Oct 17 '07 #3

Tim Chase
P: n/a
Does anybody know of a decent HTML parser for Jython? I have to do
some screen scraping, and would rather use a tested module instead of
rolling my own.
GIYF[0][1]
There are the batteries-included HTMLParser[2] and htmllib[3]
modules, and the ever-popular (and more developer-friendly)
BeautifulSoup[4] library as the first three results. For running
BS in Jython, it's recommended[5] to use an older (1.x?) version
which are available at the BS site[6]

-tkc

[0]http://en.wikipedia.org/wiki/GIYF#G
[1]http://www.google.com/search?q=python%20html%20parser
[2]http://docs.python.org/lib/module-HTMLParser.html
[3]http://docs.python.org/lib/module-htmllib.html
[4]http://www.crummy.com/software/BeautifulSoup/
[5]http://mail.python.org/pipermail/python-list/2007-May/439618.html
[6]http://www.crummy.com/software/BeautifulSoup/download/1.x/


Oct 17 '07 #4

Falcolas
P: n/a
On Oct 17, 9:50 am, Carsten Haese <cars...@uniqsys.comwrote:
Recent releases of BeautifulSoup need Python 2.3+, so they won't work on
current Jython, but BeatifulSoup 1.x will work.
Thank you.

Oct 17 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.