// Automatize, execute this on each page
// This function will be called after webpage is loaded. Modify function's body here.
// Source Url => iframe.url = the scraped's url
// Access Content => iframe.$body = body.contents() jQuery's function
// Web Console => iframe.console = console's output
// Access JS variables => iframe.window = the window object inside the iframe
// Save results as Json => RESULTS.push('key',value);
/*
iframe.$body.find('img').each(function(){
RESULTS.push('images',$(this).attr('src'));
});
iframe.$body.find('a').each(function(){
RESULTS.push('links',$(this).attr('href'));
});
var seo_items = {
title: iframe.$body.find('title').text(),
meta_title: $('meta[name=author]').attr('content'),
meta_description: $('meta[name=description]').attr('content'),
meta_keywords: $('meta[name=keywords]').attr('content'),
h1: iframe.$body.find('h1').text(),
h2: iframe.$body.find('h2').text(),
url: iframe.url
};
RESULTS.push('seo',seo_items);
*/