Skip to content

Instantly share code, notes, and snippets.

@thorsten
Created April 4, 2016 18:47
Show Gist options
  • Save thorsten/b5570313bb1355928c5f198698b85b6e to your computer and use it in GitHub Desktop.
Save thorsten/b5570313bb1355928c5f198698b85b6e to your computer and use it in GitHub Desktop.
console.log('Loading a web page');
var page = require('webpage').create();
page.open('http://www.billigflieger.de/', function(status) {
page.render('billigflieger.png');
console.log(status);
phantom.exit();
});
@thorsten
Copy link
Author

thorsten commented Apr 4, 2016

Result:

thorsten at MacBook-Pro in ~/htdocs/tests
$ phantomjs index.js
Loading a web page
TypeError: undefined is not an object (evaluating 'a.URL')

https://pagead2.googlesyndication.com/pagead/osd.js:7 in Lb
https://pagead2.googlesyndication.com/pagead/osd.js:6 in Ca
https://pagead2.googlesyndication.com/pagead/osd.js:6
success

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment