Created
September 21, 2016 18:59
-
-
Save gkio/c8eb4a1958a7746b209ae85649b184c4 to your computer and use it in GitHub Desktop.
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://www.oddsportal.com/matches/soccer/" | |
var page = require('webpage').create(); | |
page.onResourceReceived = function(response) { | |
if(response.url.substring(0, 24) == "http://fb.oddsportal.com"){ | |
console.log('Receive ' + response.body); | |
} | |
}; | |
page.open(url); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment