HTML Parser for Jython

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Falcolas

    #1

    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

  • Stefan Behnel

    #2
    Re: HTML Parser for Jython

    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

    Comment

    • Carsten Haese

      #3
      Re: HTML Parser for Jython

      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



      Comment

      • Tim Chase

        #4
        Re: 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.
        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.or g/wiki/GIYF#G
        [1]http://www.google.com/search?q=python %20html%20parse r
        [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/








        Comment

        • Falcolas

          #5
          Re: HTML Parser for Jython

          On Oct 17, 9:50 am, Carsten Haese <cars...@uniqsy s.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.

          Comment

          Working...