Java

Sunday, 27 September 2015

jsoup cookbook

jsoup cookbook

Introduction

  1. Parsing and traversing a Document

Input

  1. Parse a document from a String
  2. Parsing a body fragment
  3. Load a Document from a URL
  4. Load a Document from a File

Extracting data

  1. Use DOM methods to navigate a document
  2. Use selector-syntax to find elements
  3. Extract attributes, text, and HTML from elements
  4. Working with URLs
  5. Example program: list links

Modifying data

  1. Set attribute values
  2. Set the HTML of an element
  3. Setting the text content of elements

Cleaning HTML

  1. Sanitize untrusted HTML (to prevent XSS)
Posted by Codopedia at 09:13
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

My photo
Codopedia
View my complete profile

Java

  • ►  2016 (11)
    • ►  February (11)
  • ▼  2015 (17)
    • ►  November (9)
    • ▼  September (4)
      • jsoup cookbook
      • Web-scraping with Java
      • Stress Management (function(d, s, id) { var js, ...
      • GSON, JSON, Serialization and Deserialization Exam...
    • ►  August (2)
    • ►  July (2)
@Codopedia. Simple theme. Powered by Blogger.