0.0.6 • Published 8 years ago

web-phantom v0.0.6

Weekly downloads
16
License
MIT
Repository
github
Last release
8 years ago
npm install web-phantom
const rWebPhantom   = require("web-phantom"),
      rCo           = require("co");
      
rCo(function* () {
    const ph        = yield rWebPhantom();

    const page      = yield ph.createPage();

    const status    = yield page.open("https://db.gg"),
          content   = yield page.content();

    console.log("Page (%s):\n\n%s", status, content);

    yield page.close();
    yield ph.exit();
}).catch(console.error);
  1. Download PhantomJS (2.x)
  2. Run PhantomJS in the console: "> phantomjs -v"
  3. Run node.js applications

Doc

License

MIT


@ Daeren @ Telegram

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago

0.0.0

8 years ago