Javascript-форум (https://javascript.ru/forum/)
-   Node.JS (https://javascript.ru/forum/node-js-io-js/)
-   -   Не открывается 1 сайт (https://javascript.ru/forum/node-js-io-js/76542-ne-otkryvaetsya-1-sajjt.html)

Frost56ru 21.01.2019 12:16

Не открывается 1 сайт
 
Подскажите в чем может быть проблема?

Код получения исходника в файл:

var page = require('webpage').create();

var fs = require('fs');
var path = 'techstars.html'

page.open('https://www.myscore.ru/', function (status) {
  var content = page.content;
  fs.write(path,content,'w')
  phantom.exit();
});


Запуск:

Код:

C:\phantomjs>phantomjs.exe test.js
ReferenceError: Can't find variable: Set

  https://www.myscore.ru/x/js/core_12_1606000000.js:28
  https://www.myscore.ru/x/js/core_12_1606000000.js:7 in n
  https://www.myscore.ru/x/js/core_12_1606000000.js:20
  https://www.myscore.ru/x/js/core_12_1606000000.js:7 in n
  https://www.myscore.ru/x/js/core_12_1606000000.js:12
  https://www.myscore.ru/x/js/core_12_1606000000.js:7 in n
  https://www.myscore.ru/x/js/core_12_1606000000.js:7
TypeError: undefined is not a constructor (evaluating 'cjs.loaders.loadReact()')

  https://www.myscore.ru/:494 in global code


В чем может быть проблема? Сайты типа vk и гугла отлично сохраняютсЯ

SuperZen 21.01.2019 14:14

фантом outdated )
https://github.com/GoogleChrome/puppeteer


Часовой пояс GMT +3, время: 12:36.