473,289 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

HTML Parser for Jython

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
4 2358
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Paul Rubin | last post by:
Is there an HTML DOM parser available for Python? Preferably one that does a reasonable job with the crappy HTML out there on real web pages, that doesn't get upset about unterminated tables and...
4
by: Leif K-Brooks | last post by:
I'm writing a site with mod_python which will have, among other things, forums. I want to allow users to use some HTML (<em>, <strong>, <p>, etc.) on the forums, but I don't want to allow bad...
4
by: angel | last post by:
A java runtime environment includes jvm and java class (for example classes.zip in sun jre). Of course jython need jvm,but does it need java class. Thanx
1
by: scott | last post by:
I installed darwinports and did a "sudo port install jython" ------------------------- scott$ which jython /opt/local/bin/jython ------------------------- Jython works in interactive...
3
by: Himanshu Garg | last post by:
Hello, I am trying to pinpoint an apparent bug in HTML::Parser. The encoding of the text seems to change incorrectly if the locale isn't set properly. However Parser.pm in the directory...
18
by: SwordAngel | last post by:
Hello, I'm looking for a program that converts characters of different encodings (such as EUC-JP, Big5, GB-18030, etc.) into HTML ampersand escape sequences. Anybody knows where I can find one? ...
12
by: Mark Fink | last post by:
I wrote a Jython class that inherits from a Java class and (thats the plan) overrides one method. Everything should stay the same. If I run this nothing happens whereas if I run the Java class it...
4
by: HMS Surprise | last post by:
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...
5
by: sarup26 | last post by:
Hello .. I would like to know more about Python and Jython? What is the difference between both of them? What is the future for Jython and which are the areas where it is used? Swot
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...

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.