title: How to crawl data from yelp.com without block our IP
body: <p>I am using node packages of cheerio and nightmare for crawling from " Yelp.com ". I am retrieved data from Yelp.com.
  But yelp has blocked my IP.
  Please any one can provide solution or suggestions.Thanks in advance   </p>
  
  <p>Here is my code</p>
  
  <pre><code>var Nightmare = require('nightmare');
  var fs        = require('fs');
  var http      = require('http');
  var cheerio   = require('cheerio');
  var request   = require('request');
  
  function yelpmenuitemsscrap(url)
  {
     // console.log(url);
  
   var menuitems = new Nightmare();
  
   menuitems.goto(url);
   menuitems.wait();
  
   menuitems.evaluate(function () {
      var objs = [];
      $('div.menu-sections div.media-block.menu-  
       item').each(function(index){
  
          objs.push( $(this).find('div.media-story h4').text().trim());
  
      });
      return objs;
     },function (html) {});
     menuitems.run(function(err, nightmare) {
      if (err) 
      {
          return console.log(err);
      }
      else
      {
          console.log(nightmare);
      };
  
  
    });
   }
  </code></pre>