def get_crawl_args(message):
 msg = message.copy()
 args = [_to_native_str(msg['_spider'])]
 del msg['_project'], msg['_spider']
 settings = msg.pop('settings', {})
 for (k, v) in native_stringify_dict(msg, keys_only=False).items():
  args += ['-a']
  args += [('%s=%s' % (k, v))]
 for (k, v) in native_stringify_dict(settings, keys_only=False).items():
  args += ['-s']
  args += [('%s=%s' % (k, v))]
 return args

def get_crawl_args ( message ) : msg = message . copy ( ) args = [ _to_native_str ( msg [ '_spider' ] ) ] del msg [ '_project' ] , msg [ '_spider' ] settings = msg . pop ( 'settings' , { } ) for ( k , v ) in native_stringify_dict ( msg , keys_only = False ) . items ( ) : args += [ '-a' ] args += [ ( '%s=%s' % ( k , v ) ) ] for ( k , v ) in native_stringify_dict ( settings , keys_only = False ) . items ( ) : args += [ '-s' ] args += [ ( '%s=%s' % ( k , v ) ) ] return args
return the command-line arguments to use for the scrapy crawl process that will be started for this message .