Java-based HTML Parser

Source: Internet
Author: User

The collection of network information recently is essential for parsing HTML. I have checked a lot of tools in this area, but I don't know which one is useful. It seems that htmlparser uses multiple points, but it has not been updated since. It is probably enough to parse HTML 4. It has collected several seemingly good ones and kept them for backup.

Java Mozilla HTML Parser
Parses HTML into a Java Document Object. It is an HTML parsing class library encapsulated by the Mozilla HTML Parser. Therefore, it can provide developers with a browser-quality HTML Parser.
Address: http://mozillaparser.sourceforge.net/

Htmlcleaner
Is an open-source HTML document parser. Htmlcleaner can re-Sort each element and then generate well-structured XML documents. The default rule is similar to the one used by most Web browsers to create document object models. However, you can provide custom tags and rule groups for filtering and matching.
Address: http://htmlcleaner.sourceforge.net/

HTML Parser
Address: http://htmlparser.sourceforge.net/

Jsoup

Is a Java HTML Parser that can directly parse a URL address and HTML text content. It is much easier and lighter than the previously used htmlparser.
Address: http://jsoup.org/

-------------------------------------------------------------------------

In addition, some articles such as jsoup, such as http://www.oschina.net/p/jsoup, can be found in open source China.

This article is published in Chrysanthemum

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.