Created
September 27, 2016 03:28
-
-
Save dineshsprabu/dd4ca73fdc424a7583bcb12edb347d45 to your computer and use it in GitHub Desktop.
[NodeJS] Dynamic Page Crawling with PhantomJS and Horseman
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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