View Source treewalker_page (treewalker v0.4.1)

Manipulate a scrapped page.

Link to this section Summary

Functions

Fetch the scrapped content of the page.
Set the scrapped content of the page.
Initialize a new scrapped page.
Fetch the user agent that scrapped the page.
Set the user agent that scrapped the page.
Fetch the URL of the page.
Set the URL of the page.

Link to this section Types

-type content() :: term().
-type name() :: binary().
-opaque page()
-type url() :: uri_string:uri_string().

Link to this section Functions

-spec content(page()) -> content().
Fetch the scrapped content of the page.
-spec content(content(), page()) -> page().
Set the scrapped content of the page.
-spec init() -> page().
Initialize a new scrapped page.
-spec name(page()) -> name().
Fetch the user agent that scrapped the page.
-spec name(name(), page()) -> page().
Set the user agent that scrapped the page.
-spec url(page()) -> url().
Fetch the URL of the page.
-spec url(url(), page()) -> page().
Set the URL of the page.