title: ScrapyDeprecationWaring: Command's default `crawler` is deprecated and will be removed. Use `create_crawler` method to instantiate crawlers
body: <p>Scrapy version 0.19</p>
  
  <p>I am using the code at this page ( <a href="https://stackoverflow.com/questions/10801093/run-multiple-scrapy-spiders-at-once-using-scrapyd?rq=1">Run multiple scrapy spiders at once using scrapyd</a> ). When I run <code>scrapy allcrawl</code>, I got</p>
  
  <pre><code>ScrapyDeprecationWaring: Command's default `crawler` is deprecated and will be removed. Use `create_crawler` method to instantiate crawlers
  </code></pre>
  
  <p>Here is the code:</p>
  
  <pre><code>from scrapy.command import ScrapyCommand
  import urllib
  import urllib2
  from scrapy import log
  
  class AllCrawlCommand(ScrapyCommand):
  
      requires_project = True
      default_settings = {'LOG_ENABLED': False}
  
      def short_desc(self):
          return "Schedule a run for all available spiders"
  
      def run(self, args, opts):
          url = 'http://localhost:6800/schedule.json'
          for s in self.crawler.spiders.list(): #this line raise the warning
              values = {'project' : 'YOUR_PROJECT_NAME', 'spider' : s}
              data = urllib.urlencode(values)
              req = urllib2.Request(url, data)
              response = urllib2.urlopen(req)
              log.msg(response)
  </code></pre>
  
  <p>How do I fix the DeprecationWarning ?</p>
  
  <p>Thanks</p>