Python library for detecting and launching browsers
Project description
License | Version | ||
Github Actions | Coverage | ||
Supported versions | Wheel | ||
Status | Downloads |
browsers
Python library for detecting and launching browsers
I recently wrote a snippet for detecting installed browsers in an OSX machine in https://github.com/mitmproxy/mitmproxy/issues/5247#issuecomment-1095337723 based on https://github.com/httptoolkit/browser-launcher and I thought this could be useful to other devs since I cannot seem to find an equivalent library in Python
Installation
pip install pybrowsers
Usage
Python
>>> import browsers
>>> browsers.get("chrome")
{'path': '/Applications/Google Chrome.app', 'display_name': 'Google Chrome', 'version': '100.0.4896.88'}
>>> browsers.launch("chrome", url="https://github.com/roniemartinez/browsers")
TODO:
- Detect browser on OSX
- Detect browser on Linux/Unix
- Detect browser on Windows
- Launch browser with arguments
- Get browser by version (support wildcards)
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pybrowsers-0.1.0a0.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for pybrowsers-0.1.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a19dde08e14033a0afcff5ff60eb209d2e5effc90f8dbc78f23f79f7c6f3984 |
|
MD5 | fd3a9290aefe6ca292a160d412c00a8b |
|
BLAKE2b-256 | c11e10e9bb59425590c87e2baca3b15ee8de614710e189c7f811a2e1cea7ecb6 |