browser

package
v0.0.0-...-0773bd4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2026 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package browser provides cookie extraction helpers for locally-installed web browsers. Only Firefox is supported in v0.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Firefox

func Firefox() (*cookiejar.Jar, error)

Firefox reads Twitter/X cookies from the default Firefox profile on the current machine and returns them in an http.CookieJar.

Firefox stores cookies in plain SQLite (no encryption), so no password is required. The function copies the live cookies.sqlite to a temporary file before reading it, because Firefox holds an exclusive write lock on the live database.

func ReadFirefoxCookies

func ReadFirefoxCookies(dbPath string) (*cookiejar.Jar, error)

ReadFirefoxCookies opens a Firefox cookies.sqlite file (or a copy of one) and returns the Twitter/X cookies in a jar.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL