Setup

bl text

Get text content of the page or an element

Get text content of the page or an element

Usage

bl text [args...] [OPTIONS]

Arguments

ArgumentDescription
[args...]CSS selector, or a URL to navigate to first (optionally followed by a selector)

Options

OptionDescription
--headlessHide browser window (visible by default)
--jsonOutput as JSON
--session <value>Run this command in the named session (env: BL_SESSION; default: "default")

Global options

OptionDescription
-v, --verboseEnable debug logging

Examples

bl text
# Get all page text

bl text "h1"
# Get text of a specific element

bl text https://example.com
# Navigate then get all page text

bl text https://example.com "h1"
# Navigate then get element text

On this page