我正在使用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?