You cannot do this directly because of the same origin policy, you can use an iframe to retrieve a web page, but you cannot read it. you need a simple script server that will be a proxy. If you use php and allow open URLs as files, you can use this:
<?php if (isset($_GET['url'])) { echo json_encode(get_file_contents($_GET['url'])); }
and then using ajax you can fetch pages using urls and you can use jquery as a parser.
$.getJSON('fetch.php', {url: "http://google.pl"}, function(html) { $(html).find('img'); });
source share