Skip to main content

browser_launcher

A utility for launching browsers (Chrome, Firefox, and alternatives) with specific profiles, URLs, and incognito/private mode from Python or the command line.

Features

  • Launch Chrome or Firefox with a specific user profile and URL
  • Support for incognito/private mode
  • List available browser profiles
  • List available browsers (including alternatives like Edge, Opera, Brave, etc.)
  • Simple command-line interface (CLI)
  • Usable as a Python library

Installation

pip install browser_launcher

Or install from source:

git clone https://github.com/mexyusef/browser_launcher.git
cd browser_launcher
pip install .

Usage

Command Line

List Chrome profiles:

browser-launcher list-profiles --browser chrome

List Firefox profiles:

browser-launcher list-profiles --browser firefox

List all available browsers:

browser-launcher list-browsers

Launch Firefox with a specific profile and URL (incognito):

browser-launcher launch --browser firefox --profile myprofile --url https://gmail.com --incognito

Launch Chrome with a specific profile and URL:

browser-launcher launch --browser chrome --profile "Profile 1" --url https://example.com

Python Library

from browser_launcher.profile_manager import BrowserProfileManager, LaunchOptions

mgr = BrowserProfileManager()
options = LaunchOptions(incognito=True)
mgr.launch_browser(
    browser_type="firefox",
    profile="myprofile",
    url="https://gmail.com",
    options=options
)

License

MIT License. See LICENSE file for details.

Metadata

Release files for browser-launcher 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for browser-launcher 0.0.1
File Size Uploaded
browser_launcher-0.0.1.tar.gz 17.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for browser-launcher 0.0.1
File Interpreter ABI Platform
browser_launcher-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 40.3 kB

Release files / browser_launcher-0.0.1.tar.gz

Download URL browser_launcher-0.0.1.tar.gz
Size 17.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e288c4e0dcaeb2146e57bd29a69556498fe44a1f1e3b6b87e610427a89fa2b02
BLAKE2b-256 checksum
How to use checksums
66182965f8632c52788d2b9fa4cf9ac608c4fa7b873b11c69ea79dd497a1721d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.0

Release files / browser_launcher-0.0.1-py3-none-any.whl

Download URL browser_launcher-0.0.1-py3-none-any.whl
Size 22.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
abe493933826eccf546e56f523a99e5718662cf6858937da9d56c3c7e6dd8cb7
BLAKE2b-256 checksum
How to use checksums
ccbc540ce87ae0c35c14b3cebd5587a2452d57a3edcdc025470fc5abd05d2755
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.0

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page