如何指定 mTurk 沙箱主机。在 boto 中,这是通过连接完成的,但我在 boto3 API 中没有看到。
这是博托
connection = MTurkConnection(aws_access_key_id=AWS_ACCESS_KEY_ID,
aws_secret_access_key=AWS_SECRET_ACCESS_KEY,
host='mechanicalturk.sandbox.amazonaws.com')
来自 scottlobdell
最佳答案
我想到了
endpoint_url = 'https://mturk-requester-sandbox.us-east-1.amazonaws.com'
# Uncomment this line to use in production
# endpoint_url = 'https://mturk-requester.us-east-1.amazonaws.com'
client = boto3.client('mturk',
endpoint_url = endpoint_url
)
关于boto3 - 如何使用 boto3 连接到 mturk 沙箱,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43013914/