Go to file
2017-01-24 22:09:23 +07:00
cdp Initial import 2017-01-24 22:09:23 +07:00
client Initial import 2017-01-24 22:09:23 +07:00
cmd/chromedp-gen Initial import 2017-01-24 22:09:23 +07:00
contrib Initial import 2017-01-24 22:09:23 +07:00
examples Initial import 2017-01-24 22:09:23 +07:00
runner Initial import 2017-01-24 22:09:23 +07:00
testdata Initial import 2017-01-24 22:09:23 +07:00
.gitignore Initial import 2017-01-24 22:09:23 +07:00
actions.go Initial import 2017-01-24 22:09:23 +07:00
chromedp.go Initial import 2017-01-24 22:09:23 +07:00
handler.go Initial import 2017-01-24 22:09:23 +07:00
input.go Initial import 2017-01-24 22:09:23 +07:00
LICENSE Initial import 2017-01-24 22:09:23 +07:00
nav.go Initial import 2017-01-24 22:09:23 +07:00
query.go Initial import 2017-01-24 22:09:23 +07:00
README.md Initial import 2017-01-24 22:09:23 +07:00
sel.go Initial import 2017-01-24 22:09:23 +07:00
util.go Initial import 2017-01-24 22:09:23 +07:00

About chromedp

Package chromedp is a faster, simpler way to drive browsers in Go using the Chrome Debugging Protocol (for Chrome, Edge, Safari, etc) without external dependencies (ie, Selenium, PhantomJS, etc).

NOTE: chromedp's API is currently unstable, and may change at a moments notice. There are likely extremely bad bugs lurking in this code. CAVEAT USER.

Installation

Install in the usual way:

go get -u github.com/knq/chromedp

Usage

Please see the examples directory for examples.

TODO

  • Move timeouts to context (defaults)
  • Implement more query selector options (allow over riding context timeouts)
  • Contextual actions for "dry run" (or via an accumulator?)
  • Network loader / manager
  • More examples
  • Profiler
  • Unit tests / coverage: travis-ci + coveralls integration