感谢 PhantomJS,我正在尝试抓取此网页:https://www.koshkamashkaeshop.com/fr/28-robes-Koshka-Mashka 但每次都无法加载。我认为这是因为 https。 这是我的 .sh 代码:
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 --debug=yes --ignore-ssl-errors=true --ssl-protocol=any --web-security=true rasterize.js url output.pdf
关于javascript - Phantomjs加载地址失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29755476/