获取所有具有特定状态的 HIT

Get all HITs with a certain status

SearchHITs 函数似乎对进行任何实际搜索几乎毫无用处。它只是提取您的 HIT 列表,不允许任何过滤器。搜索遍历所有结果的唯一方法是什么?例如:

my_reviewable_hits = []
for page in range(5,50):
    res = m.conn.search_hits(sort_direction='Descending', page_size=100, page_number=page)
    for hit in res:
        if hit.HITStatus == 'Reviewable':
            my_reviewable_hits.append(hit)

是的。您必须遍历所有这些。