title: extract all hyperlinks ( from external website ) using node.js and request
body: <p>Right now our app writes the source code of nodejs.org to the console.
  We'd like it to write all hyperlinks of nodejs.org instead.
  Maybe we need just one line of code to get the links from <code>body</code>. </p>
  
  <p>app.js:</p>
  
  <pre><code>var http = require('http');
  
  http.createServer(function (req, res) {
      res.writeHead(200, {'Content-Type': 'text/plain'});
      res.end('Hello World\n');
  }).listen(1337, '127.0.0.1');
  console.log('Server running at http://127.0.0.1:1337/');
  
  var request = require("request");
  
  
  
  request("http://nodejs.org/", function (error, response, body) {
      if (!error)
          console.log(body);
      else
          console.log(error);
  });
  </code></pre>