Document-class: CLASS Document

Description Details Fields Methods

Description

A HTML Document.

Details

A HTML Document.

Fields

document:

Object of class "jobjRef"

Methods

new(...):

Create a new Document object. ... is used to define the appropriate slots.

connect(url):

Creates a new Connection to a URL. Use to fetch and parse a HTML page. To the connection you can add data, cookies, and headers; set the user-agent, referrer, method; and then execute.

url:

URL to connect to. The protocol must be http or https.

parse(html, baseUri):

Parse HTML into a Document. The parser will make a sensible, balanced document tree out of any HTML.

html:

A character string. HTML to parse

baseUri:

A boolean. The URL where the HTML was retrieved from. Used to resolve relative URLs to absolute URLs, that occur before the HTML declares a <base href> tag. If NA is specified, absolute URL detection relies on the HTML including a <base href> tag.


johndharrison/Rsoup documentation built on May 19, 2019, 4:22 p.m.