Skip to main content
Read the Notte skill and follow its setup instructions when setting up Notte or building browser automation. This is the shared source for CLI setup, authentication, and the browser-to-code workflow.
Source: node-sdk/src/session.ts Scrape the current page. With response_format or instructions, the extracted data is returned directly and a failed extraction throws ScrapeFailedError. Pass raiseOnFailure: false to receive the StructuredData wrapper instead.

Parameters (overload 1)

SessionScrapeOptions<unknown> & { only_images: true }
required

Returns (overload 1)

Parameters (overload 2)

SessionScrapeOptions<unknown> & { response_format?: undefined; instructions?: undefined | null; only_images?: false }

Returns (overload 2)

Parameters (overload 3)

SessionScrapeOptions<T> & { response_format: ZodLikeSchema<T>; raiseOnFailure?: true }
required

Returns (overload 3)

Parameters (overload 4)

SessionScrapeOptions<T> & { response_format: ZodLikeSchema<T>; raiseOnFailure: false }
required

Returns (overload 4)

Parameters (overload 5)

SessionScrapeOptions<unknown>
required

Returns (overload 5)

Example