In the browser console, all the rules, the file is loaded.

$('#query').val("7804031474"); $('.btn-search').click(); $(function(){ function show_popup(){ $('.op-excerpt').click(); }; window.setTimeout( show_popup, 5000 ); // 5 seconds }); 

Download by clicking on (.op-excerpt) In phantom-ws everything works, except for the file jump. The site does not give a link, it just immediately starts downloading by clicking on the button.

  var url = 'https://egrul.nalog.ru/index.html/'; var page = require('webpage').create(); page.onConsoleMessage = function(msg) { console.log(msg); }; page.open(url, function () { page.injectJs('jquery.min.js'); page.evaluate(function () { $('#query').val("7804031474"); $('.btn-search').click(); $(function(){ function show_popup(){ $('.op-excerpt').click(); }; window.setTimeout( show_popup, 5000 ); // 5 seconds }); }); phantom.exit() }); 
  • The code should be given in a text version, not a picture - Jarvis_J

0