I'm using the boto
library to play around with Amazon MTurk. I want to retrieve some reviewable HITs, and display their properties. For example:
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)
I do manage to get HITId
, but for some reason I cannot get Title
as I get this error msg:
AttributeError: HIT instance has no attribute 'Title'
A look at AWS API (http://docs.aws.amazon.com/AWSMechTurk/latest/AWSMturkAPI/ApiReference_HITDataStructureArticle.html) suggests that the property should be there. In fact, if I get individual HIT through get_hit
method of boto
, Title
property exists. Any reason why this does not work for the HITs returned by get_reviewable_hits
method?