Get all the tasks in the pool with the ID specified in the request.
Connect the Toloka-Kit library to your script.
import toloka.client as toloka
Replace the sample OAuth token with your own one.
toloka_client = toloka.('AQC2AGAJgyNSA8CtpdO9MWy_QEB6s6kDjHUoElE', 'PRODUCTION');
Find out the ID of the pool you want to view the tasks in. Then, iterate through all the tasks in the pool calling the get_tasks()
method.
for task in toloka_client.(pool_id='1227652'):
print(task.id, task.created.date(), task.overlap)
You should get an output with the skill IDs, names, and private comments which looks like this.
00022da5a7--6388b40547c84000494cdc58 2022-12-01 300022da5a7--6388b40547c84000494cdc59 2022-12-01 300022da5a7--6388b40547c84000494cdc5a 2022-12-01 500022da5a7--6388b40547c84000494cdc5b 2022-12-01 300022da5a7--6388b40547c84000494cdc60 2022-12-01 300022da5a7--6388b40547c84000494cdc6b 2022-12-01 3
import toloka.client as tolokatoloka_client = toloka.TolokaClient('AQC2AGAJgyNSA8CtpdO9MWy_QEB6s6kDjHUoElE', 'PRODUCTION')for task in toloka_client.get_tasks(pool_id='1227652'): print(task.id, task.created.date(), task.overlap)