2014年7月11日 星期五

[HTML Parser] Using libxml2-2.9.1 to parse html




  1. Download code from1

  2. tar xvf libxml2-2.9.1.tar.gz

  3. Compile Library



    cd libxml2-2.9.1

    ./configure –prefix=(which folder you want install)

    make && make install



    if have “fatal error: Python.h: No such file or directory”

    Please install “sudo apt-get install python-dev”2

  4. Download parse4.c and Makefile3

  5. Then press Make will produce a binary file.



Reference



Related Posts:

0 意見:

張貼留言