def cmd_get_spider_stats(args, opts):
 stats = jsonrpc_call(opts, 'stats', 'get_stats', args[0])
 for (name, value) in stats.items():
  print(('%-40s %s' % (name, value)))

def cmd_get_spider_stats ( args , opts ) : stats = jsonrpc_call ( opts , 'stats' , 'get_stats' , args [ 0 ] ) for ( name , value ) in stats . items ( ) : print ( ( '%-40s %s' % ( name , value ) ) )
get-spider-stats <spider> - get stats of a running spider .