I'd like to access an external page ( google for example), and inside it run a script to capture all the hrefs, I read about the fact that browsers do not allow to use GET to get the html, but I believe that I must have a way to do this, I have this code for now. I read about googlebot, and would like to try doing this in JS.
$.ajax({
url: 'http://google.com',
type: 'GET',
success: function(res) {
$('a').each(function() {
alert($this.href);
});
}
});