Html parser

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

    #1

    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

  • Stephen R Laniel

    #2
    Re: Html parser

    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:


    --
    Stephen R. Laniel
    steve@laniels.o rg
    Cell: +(617) 308-5571

    PGP key: http://laniels.org/slaniel.key

    Comment

    • HMS Surprise

      #3
      Re: Html parser

      Thanks,

      jh

      Comment

      • Lee Hinde

        #4
        Re: Html parser

        On Jun 15, 7:11 am, HMS Surprise <j...@datavoice int.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:

        Don't know about the jython part....

        Comment

        • Nikita the Spider

          #5
          Re: Html parser

          In article <mailman.9124.1 181917406.32031 .python-list@python.org >,
          Stephen R Laniel <steve@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:
          Oregon State University delivers exceptional, accessible education and problem-solving innovation as Oregon's largest and statewide public research university.


          Much easier to use than BeautifulSoup IMO.

          --
          Philip

          Whole-site HTML validation, link checking and more

          Comment

          Working...