Phantomjs 加载地址失败

Zoo*_*oom 0 javascript ssl web-scraping phantomjs

感谢 PhantomJS,我正在尝试抓取此网页:https : //www.koshkamashkaeshop.com/fr/28-robes-Koshka-Mashka 但每次都无法加载。我认为这是因为https。这是我的 .sh 代码:

phantomjs  --ignore-ssl-errors=yes test.js
Run Code Online (Sandbox Code Playgroud)

这是我的 test.js 代码:

page.open(url, function (status) {

var content = page.evaluate(function()
 {
  if (status !== 'success') {
     console.log('FAIL to load the address');
  }else{

  }
 }
)})
Run Code Online (Sandbox Code Playgroud)

Leo*_*dez 5

我知道这是旧的,但我遇到了同样的错误

phantomjs --debug=yes --ignore-ssl-errors=true --ssl-protocol=any --web-security=true rasterize.js url output.pdf
Run Code Online (Sandbox Code Playgroud)

信用:https : //github.com/ariya/phantomjs/issues/10178