Skip to main content
If instructions is null then the whole page will be scraped. Otherwise, only the data that matches the instructions will be scraped. Instructions should be given as natural language, e.g. ‘Extract the title and the price of the product’. Example:
from notte_sdk import actions

session.execute(actions.Scrape(instructions="Extract product title and price"))
session.execute(actions.Scrape(only_main_content=True))
session.execute(actions.Scrape())  # Scrape entire page

Fields

type
Literal['scrape']
default:"scrape"
category
str
default:"Special Browser Actions"
description
str
instructions
UnionType[str, None]
only_main_content
bool
default:"True"
Whether to only scrape the main content of the page. If True, navbars, footers, etc. are excluded.

Module

notte_core.actions
I