我想在网页中获取 html 内容进行处理。然后使用该网页中的这些关键字在 Google 上进行搜索。您能告诉我如何获取以下示例的 html 代码:
<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>