Jsoup HTML Parser

Source: Internet
Author: User
Jsoup

Jsoup Cookbook (Chinese Version)
  1. Parse and traverse an HTML document
Input
  1. Parse an HTML string
  2. Parse a body segment
  3. Load a Document Object Based on a URL
  4. Load a Document Object Based on a file
Data Extraction
  1. Use the DOM method to traverse a Document Object
  2. Use selector syntax to find elements
  3. Extract attributes, text, and HTML content from element sets
  4. URL Processing
  5. Program example: Get all links
Data Modification
  1. Set attribute values
  2. Set the HTML content of an element
  3. Set the text content of an element
HTML cleanup
  1. Eliminate untrusted HTML (to prevent XSS attacks)

Http://www.open-open.com/jsoup/

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.