Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Nov 13, 2025. It is now read-only.
Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevTools.py

A set of automatically generated python bindings for the devtools protocol

Example

Take a screenshot of a webpage

import base64, devtools

c = devtools.Client("localhost:9222")
c.page.navigate("http://www.shishnet.org")
b64data = c.page.captureScreenshot()['data']

open('screenshot.png', 'w').write(base64.b64decode(b64data))

Dependencies

websocket-client

Build

$ git clone https://github.com/shish/devtools-py
$ make -C devtools-py

Smoke Test

This should open chrome, then connect to it, and open shishnet.org in the new browser

$ /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 --user-data-dir=~/.chrome-test
$ python devtools-py/devtools.py

About

A Python client for Chrome's DevTools protocol / a headless chrome control library

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.