This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var page = require('webpage').create(); | |
phantom.cookiesEnabled = true; | |
console.log('\n\n cookies we know about => \n\n' + JSON.stringify(phantom.cookies, null, 2)); | |
// spoof user-agent | |
page.settings.userAgent = 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0'; | |
const USER = 'cvUg338yQa'; | |
const PASS = 'GNyoqNKJK5'; |