1.3.0 • Published 6 years ago

zombieteer v1.3.0

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

zombieteer

A simple wrapper for puppeteer.js that lets a running chrome browser to be controlled by scripts

features

  • keeps an opened browser
  • exposes a repl for controlling the browser

installation

npm install -g zombieteer

If you already have chrome installed, and want to avoid downloading another version, try: PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 npm install -g zombieteer

then run with zombieteer --new --bin=/path/to/chrome

note: the argument to bin must be the chrome binary itself, not a directory You only need to specify --bin once. If you want to change it, add --save-bin

usage

zombieteer path/to/script.js script.js must export a function of type:

function({
    browser,     /*: puppeteer.Browser */
    currentPage, /*: () => puppeteer.Page */
    repl,        /*: () => void */
}) 

running an example (see example/ dir)

  1. cd example/
  2. ./run-php-server.sh
  3. zombieteer --new # opens a new browser, do only once
  4. zombieteer submit-form.js # separate terminal
1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago