我正在使用boto
库来玩亚马逊MTurk。我想检索一些可检查的HIT,并显示它们的属性。例如:HIT实例对于boto返回的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)表明,财产应该在那里。事实上,如果我通过get_hit
方法得到个人HIT boto
,Title
属性存在。任何理由为什么这不适用于由get_reviewable_hits
方法返回的HIT?