His*_*him 6 mechanicalturk boto python-2.7
我正在亚马逊Mturk的一个项目.我正在使用Python Boto API.
boto.connection.create_HIT()方法返回ResultSet的一个对象,我试图从中获取HIT Id.我还在Create_HIT()中使用了响应组,如'HITDetail',HITAssignmentSummary'和'HITQuestion'.
my_hit = mturk_connection.create_hit(hit_type = my_hit_type,
question = my_question,
max_assignments = 1,
annotation = "An annotation from boto ",
lifetime = 8*60,
response_groups = ['HITDetail','HITQuestion','HITAssignmentSummary'])
Run Code Online (Sandbox Code Playgroud)
但是我无法找到从它返回的内容中获取HIT Id的方法.
请帮我解决一下这个.
在create_HIT()中,将参数'response_groups'的值传递为'Minimal'.然后在你的情况下,使用my_hit [0] .HITTypeId它应该工作正常.. :)
| 归档时间: |
|
| 查看次数: |
612 次 |
| 最近记录: |