Answer the question
In order to leave comments, you need to log in
How to work with Phantomjs through Proxy?
It is necessary that Phantomjs requests come from different IPs
Answer the question
In order to leave comments, you need to log in
try doing like this:
var phantom = require('phantom');
phantom.create({
parameters: {
proxy: '12.34.56.78:9876'
}
}, function(browser){
browser.createPage(function(page){
page.open('http://example.com/req.php', function() {
...
});
});
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question