title: nodejs How to scraping multi site in scraping loop
body: <p>I'm trying to make simple feed reader in node and I'm facing a problem with multiple requests in node.js. For example,
  i got this code :</p>
  
  <pre><code>var url = [
      "https://site1.com",
      "https://site2.com"
  ]; 
  var items = [];
  var i;
  for(i=0; i&lt;url.length; i++){
      request(url[i], function(err, respone, html){
      if(!err) {
          var $ = cheerio.load(html);
          if(i == 0){
              $(".class1").find("a").each(function (index, element){
                  items.push($(element).text());
              });
          }else if(i == 1){
              $(".class1").find("a").each(function (index, element){
                  items.push($(element).text());
              });
          }
      }
      });
  }
  </code></pre>
  
  <p>How to scraping multi site in scraping loop ?</p>