Created
July 16, 2014 17:58
-
-
Save caryfitzhugh/0e6dbff3d70dc6cac13d to your computer and use it in GitHub Desktop.
phantomjs script
This file contains hidden or 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 url = "http://thehungryhousewife.ziplist.com/webkitchen/button/add_recipe?as_partner=thehungryhousewife&url=http%3A%2F%2Fwww.thehungryhousewife.com%2F2014%2F07%2Fpeach-cobbler.html"; | |
var page = require('webpage').create(); | |
page.onResourceRequested = function(request) { | |
console.log('Request ' + JSON.stringify(request, undefined, 4)); | |
}; | |
page.onResourceReceived = function(response) { | |
console.log('Receive ' + JSON.stringify(response, undefined, 4)); | |
}; | |
page.open(url); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment