Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dineshsprabu/dd4ca73fdc424a7583bcb12edb347d45 to your computer and use it in GitHub Desktop.
Save dineshsprabu/dd4ca73fdc424a7583bcb12edb347d45 to your computer and use it in GitHub Desktop.
[NodeJS] Dynamic Page Crawling with PhantomJS and Horseman
var Horseman = require('node-horseman');
var horseman = new Horseman();
horseman
.open('http://httpbin.org/ip')
.setProxy('http://api-key:@proxy.crawlera.com:8010') //change the proxy before use.
.html('body')
.then(function(body) {
console.log(body);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment