Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save admariner/655a749c7b2eda14651c6e0d24953595 to your computer and use it in GitHub Desktop.
Save admariner/655a749c7b2eda14651c6e0d24953595 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