Launches an obscura browser instance.
A browser owns a shared cookie jar and spawns pages. Each Obscurax.Page
gets its own OS thread and V8 isolate, so multiple pages from the same
browser run in parallel.
Options
:stealth— enable stealth mode (default:false):proxy— proxy URL string, e.g."socks5://127.0.0.1:1080":user_agent— custom User-Agent header:storage_dir— directory for persistent storage
Example
{:ok, browser} = Obscurax.Browser.new(stealth: true)
{:ok, page} = Obscurax.Browser.new_page(browser)
store = Obscurax.Browser.cookies(browser)
Summary
Types
@type t() :: %Obscurax.Browser{ref: reference()}
Functions
@spec cookies(t()) :: Obscurax.CookieStore.t()
@spec new(keyword()) :: {:ok, t()} | {:error, Obscurax.Error.t()}
@spec new_page(t()) :: {:ok, Obscurax.Page.t()} | {:error, Obscurax.Error.t()}
@spec new_page!(t()) :: Obscurax.Page.t()