Skip to content

Instantly share code, notes, and snippets.

@caryfitzhugh
Created July 16, 2014 17:58
Show Gist options
  • Save caryfitzhugh/0e6dbff3d70dc6cac13d to your computer and use it in GitHub Desktop.
Save caryfitzhugh/0e6dbff3d70dc6cac13d to your computer and use it in GitHub Desktop.
phantomjs script
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