Forked from dineshsprabu/phantomjs_horseman_dynamic_page_crawling.js
Created
November 14, 2023 15:48
-
-
Save admariner/655a749c7b2eda14651c6e0d24953595 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