title: How to read a webpage in order to obtain its html content
body: <p>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:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script&gt;
  
    //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);
  
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>