我试图,由于PhantomJS,刮这个网页:https://www.koshkamashkaeshop.com/fr/28-robes-Koshka-Mashka 但它无法加载每一次。我认为这是因为https。 这里是我的代码.SH:Phantomjs无法加载地址
phantomjs --ignore-ssl-errors=yes test.js
这里是我的test.js代码:
page.open(url, function (status) {
var content = page.evaluate(function()
{
if (status !== 'success') {
console.log('FAIL to load the address');
}else{
}
}
)})
您有什么PhantomJS版本,并且在使用'--ssl-protocol = any'选项调用PhantomJS时会执行页面加载吗? –
我有1.9版本。我试过--ssl-protocol =任何但不工作 – Zoomzoom