Skip to main content

browser-debugger-tools

CirclCI PyPI Python License

Overview

The purpose is to provide a python client to connect to the debugger tools of a web-browser.

Currently supports connecting to Google-Chrome/Chromium over the devtools protocol, via a wrapped websockets client. Feel free to extend and add support for other browsers as required.

For improved performance, install the wsaccel python lib https://pypi.org/project/wsaccel/

Example Usage

Start Google-Chrome, passing a remote debugger port argument, for example on Ubuntu:

$ google-chrome-stable --remote-debugging-port=9899

In a python console, you can connect to the remote debugging port and enable the Page domain.

>> devtools_client = ChromeInterface(9899, domains={"Page": {}})

The client provides some devtools interface methods, for example:

>> with devtools_client.set_timeout(10):
   ... devtools_client.take_screenshot("/tmp/screenshot.png")

Or more generally you can call remote methods according to the devtools protocol spec (https://chromedevtools.github.io/devtools-protocol/tot/Network), for example

>> devtools_client.execute(domain="Network", method="enable")
>> devtools_client.execute("Network", "setUserAgentOverride", {"userAgent": "Test"})

Metadata

Release files for browserdebuggertools 6.0.3

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

Built distribution (wheel)

Table of built distributions (wheels) for browserdebuggertools 6.0.3
File Interpreter ABI Platform
browserdebuggertools-6.0.3-py3-none-any.whl Python 3 none any Details

Release files / browserdebuggertools-6.0.3-py3-none-any.whl

Download URL browserdebuggertools-6.0.3-py3-none-any.whl
Size 30.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
602071b8a81cefbc63da84059486cbf75dd0a2e37774604437d040512c9cd4ed
BLAKE2b-256 checksum
How to use checksums
e1dd36e3117a37fb9bffb4e7309e049defc4c3dc203707efd59211d2647bc813
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release history Release notifications | RSS feed

This release

6.0.3 This release

1 release file

6.0.1

2 release files

6.0.0

2 release files

5.4.0

3 release files

5.3.0

3 release files

5.2.0

3 release files

5.1.0

3 release files

5.0.1

3 release files

5.0.0

3 release files

4.0.0

3 release files

3.2.0

3 release files

3.1.0

3 release files

2.1.0

2 release files

2.0.0

3 release files

1.0.1

3 release files

1.0.0

3 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