Skip to content

thomashoffmann1979/phantomjs-remote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Description

Phantomjs-remote is a wrapper for phantom js. With that wrapper you can use the phatomjs-like api inside of node.

Using

var Remote = require('../lib/phantomjs-remote.js').Remote;
var remote = new Remote({});
remote.start(function(){
    remote.create(function(page){
        page.open('http://tualo.de',function(status){
            page.evaluate(function(){
                return {
                    title: document.title,
                    body: document.body
                };
            },function(result){
                console.log('and here is the result',result);
            });
        });
    });
 });

About

A phantomjs wrapper for node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published