Classes

Page.mjs

@mr_ozio/scraper-utils · v2.5.0 · Generated April 21, 2026

Target Style

Target Style

1 exports

class

Page

Target Style
export class Page {

No description provided.

Target style API. Preferred for new code.

Members

4 items

Target Style

Target Style

3 members

constructor

constructor

Target Style
constructor({ url, html, timestamp }) {

/** Builds a page instance from HTML and optional metadata.

Parameters

  • options{ url?: string, html: string, timestamp?: number }

method

update

Target Style
update({ url, html, timestamp }) {

/** Replaces the current page contents and metadata.

Parameters

  • options{ url?: string, html: string, timestamp?: number }

method

data

Target Style
data() {

/** Returns structured page data.

Subclasses can override this method to expose extracted fields.

Returns

Record<string, any>

Legacy Style

Legacy Style

1 members

method

getData

Legacy Style
getData() {

/** Returns structured page data.

Returns

Record<string, any>

Legacy Style

Legacy Style

0 exports

No legacy exports in this module.