I think you could pull the whole page with an Ajax request, put the content in a hidden iframe, and then manipulate the DOM in the iframe. Something like (here using jQuery framework)
<iframe id="holder" style="display: none">
<script type="text/javascript">
$("#holder").load("http://www.google.com",function () {
$link = $("#holder").contents().find("#courses_menu > ul > li > a");
});
</script>
source
share