有没有办法在请求之间更改代理(对于相同的casper对象):
这样的事情: var casper=require('casper').create({
clientScripts: ["lib/js/jquery.min.js"],
// other settings...
});
casper.start("http://www.site1.com",function(){
casper.setProxy("http://xxx.xx.xx.xx:80"); // is there somthing like that ?
casper.thenOpen("http://www.site2.com",function(){ // through the proxy i set above...
// some code...
});
});
casper.run(function(){casper.exit();});