【发布时间】:2016-07-27 23:45:34
【问题描述】:
我正在使用 boto 库来玩弄 Amazon MTurk。我想检索一些可审查的 HIT,并显示它们的属性。例如:
hits = self.mturk_conn.get_reviewable_hits(page_size=30, status='Reviewable', sort_by='Expiration', sort_direction='Ascending', page_number=1)
for h in hits:
print '%s: %s' % (h.HITId, h.Title)
我确实设法获得了HITId,但由于某种原因我无法获得Title,因为我收到了这个错误消息:
AttributeError: HIT instance has no attribute 'Title'
查看 AWS API (http://docs.aws.amazon.com/AWSMechTurk/latest/AWSMturkAPI/ApiReference_HITDataStructureArticle.html) 表明该属性应该存在。事实上,如果我通过boto 的get_hit 方法获得单个HIT,则Title 属性存在。为什么这对于get_reviewable_hits 方法返回的 HIT 不起作用?
【问题讨论】:
标签: amazon-web-services boto mechanicalturk