I want to get page source of one website, is it ok to put the address of that website? Im using PHP for scrapping, the problem is that I can't get the page source code, I also tried with phantomjs, I call this script from my PHP code:
var system = require('system');
var args = system.args;
if (args.length === 1) {
console.log('Try to pass some arguments when invoking this script!');
}
else {
var page = require('webpage').create();
page.settings.userAgent = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.2062'
page.open(args[1], function(status) {
page.onLoadFinished = function(status){
console.log(page.content);
phantom.exit();
};
});
}
but every time I receive only empty page, I try also with luminati proxy but it does not work, does someone have an idea what else I can try?