使用Boto3创建的HIT不会显示在沙箱中的“管理批次”下

问题描述 投票:2回答:1

正如标题所说,我用Boto3创建了一些带有以下代码的HITS(显然是编辑过的):

import boto3

# this is the sandbox server
mturk = boto3.client(
    'mturk',
    aws_access_key_id="REDACTED",
    aws_secret_access_key="REDACTED",
    region_name='us-east-1',
    endpoint_url='https://mturk-requester-sandbox.us-east-1.amazonaws.com'
)



# creates a hit - note that it accesses a file for the xml-formatted question
def create_test_hit():
    question = open('path/to/mlearnBoto_question.xml', mode='r').read()

    new_hit = mturk.create_hit(
        Title='Title',
        Description='Task description',
        Keywords='language, psychology, experiment',
        Reward='2',
        MaxAssignments=1,
        LifetimeInSeconds=75600,
        AssignmentDurationInSeconds=10800,
        AutoApprovalDelayInSeconds=604800,
        Question=question
    )

create_test_hit()

但是,批次不会出现在链接https://requestersandbox.mturk.com/manage的“管理”选项卡中(一切都为0)。

只是为了确定,我跑了

pprint(mturk.list_hits())

事实上我的HIT就在那里。

我不明白吗?我不应该在“管理”标签中看到我在Boto中创建的HIT吗?如果没有,我在哪里可以看到它们?

boto3 mechanicalturk
1个回答
0
投票

试试https://github.com/jtjacques/mturk-manage

管理控制台完全基于JavaScript,并在您的Web浏览器中本地运行。它复制了2017年12月更改中使用Manage HITs单独模块删除的大部分基本功能。您将需要您的API密钥才能使用该工具,但这些密钥不会存储或传输给我自己或任何第三方。

资料来源:https://stackoverflow.com/a/48404999/5511061

© www.soinside.com 2019 - 2024. All rights reserved.