Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 1.22 KB

README.md

File metadata and controls

18 lines (11 loc) · 1.22 KB

ofxChrome

Build Status

This attempts to run the Google Chrome web browser in headless mode and controlling it through their DevTools. This implies launching Chrome with the debugger enabled (--remote-debugging-port=9222), sending an http request to http://chrome-ip:9222/json to get a list of open pages to get a WebSocket @ to connect to, and connecting to that WebSocket to take control of the browser.

One of the features I'm shooting for is being able to get "snapshots" from the browser. You can do that through their DevTools API; you can request a capture and it returns a base64 encoded png/jpeg of the browser window.

This is very much a WIP and the API will change.

Dependencies

ofxPoco, ofxExternalProcess, ofxLibwebsockets.

License

ofxChrome is made available under the MIT license.
Chrome is of coursed owned by Google!