I would like to get html contents in a webpage for processing. Then use those keywords in that webpage to be search on Google. Can you please tell me how can I get html code for the following example:
<html>
<head>
<script>
//Here I would like to read news.yahoo.com page and get the html content of that page for further processing
var a = window.open("https://www.google.com/#q=keyword1"); // search keyword in google
setTimeout(function() { a.close() }, 100);
var b = window.open("https://www.google.com/#q=keyword2"); // search keyword in google
setTimeout(function() { b.close() }, 100);
</script>
</head>
<body>
</body>
</html>