Skip to main content

Client for talking to the Google Chrome remote shell port

Project description

This library makes it easy to communicate with the Google Chrome remote debugging shell from Python. To make the shell available, start Chrome with this option:

google-chrome --remote-shell-port=9222

Then you can connect from Python through code like this:

>>> import chrome_remote_shell
>>> shell = chrome_remote_shell.open(port=9222)
>>> shell.request('DevToolsService', command='ping')
{u'data': u'ok', u'command': u'ping', u'result': 0}

The protocol is described in detail at:

http://code.google.com/p/chromedevtools/wiki/ChromeDevToolsProtocol

As a convenience, the shell connection object offers a method that, by injecting JavaScript into the first tab, commands Chrome to open a URL in a new tab:

shell.open_url('http://www.aldaily.com/')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chrome_remote_shell-1.0.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file chrome_remote_shell-1.0.tar.gz.

File metadata

File hashes

Hashes for chrome_remote_shell-1.0.tar.gz
Algorithm Hash digest
SHA256 55801d006139efec9327a92ae7a39a2566565af7bba1dd42036407b579ae8cbd
MD5 1a42f069255598ed1152c8035b0c0913
BLAKE2b-256 18ceb11bb2857af40725cdeebd0da3bcee9d72270cf1453ab6cc7b251894ea2b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page