MyCDP
A Python interface for the Chrome DevTools Protocol. Enables direct control of Chrome without external automation drivers.
Install / Use
/learn @mdmintz/MyCDPREADME
MyCDP (PyPI: mycdp) is a collection of autogenerated CDP (Chrome DevTools Protocol) utilities for enabling Chromium automation with Python without the need for external automation drivers (such as WebDriver) for controlling the browser.
Additionally, MyCDP can be used to connect to an existing Chromium browser instance if the remote-debugging-port is known. This advanced option allows for browsers to be controlled by multiple automation frameworks at the same time.
This isn't a standalone product. Import MyCDP into your automation frameworks for driving the browser and using CDP commands.
SeleniumBase (via CDP Mode) is one of the frameworks using MyCDP.
For the direct CDP API, (which MyCDP calls), see: https://chromedevtools.github.io/devtools-protocol/
Note that CDP itself can be found in most automation frameworks:
<img src="https://github.com/user-attachments/assets/349850f0-45d4-45c9-9425-05736207ec0f" title="CDP" width="560" />MyCDP makes CDP more accessible to Python frameworks.
