javascript - PhantomJS cannot open a page -


I am trying to get an HTML version of my URL because my spinal cord structure is with many JavaScript code But this line works only occasionally ... Yes, sometimes works and the content of the page is filled, but sometimes prevents the phantom and is not able to open that page. In fact, it does not log anything.

I played with the end of time but I could not find anything. Any help? It does not seem to be any deterministic behavior thanks in advance!

  var page = ('webpage') is required. Create (); Page.open ('myurl', function (status) {if (position! == 'success') {console.log ('failed to load address)' phantom.exit (1);} else {console.log ("Successful page is open!"); Console.log (page content); phantom.exit (0);}});  


Comments