List Tolokers with skills

Get all the skills assigned to the Toloker with the ID specified in the request.

Steps to follow

1. Import Toloka-Kit

Connect the Toloka-Kit library to your script.

import toloka.client as toloka

2. Instantiate TolokaClient

Replace the sample OAuth token with your own one.

toloka_client = toloka.

3. Print skill names, "skill-Toloker" pair IDs, and values

Get all the skills assigned to the selected Toloker using the get_user_skills() method. Then, iterate through all these found skills calling the get_skill() method.

for user_skill in toloka_client.

skill = toloka_client.

print(,, user_skill.value)

You should get an output with the skill names, "skill-Toloker" pair IDs, and values which looks like this.

Product Search Relevance 54116339 70
Programmer 54132692 50

The "skill-Toloker" pair ID allows you to get or remove the skill assigned to a specific Toloker.

Complete code: List Tolokers with skills

import toloka.client as toloka
toloka_client = toloka.TolokaClient('AQC2AGAJgyNSA8CtpdO9MWy_QEB6s6kDjHUoElE', 'PRODUCTION')
for user_skill in toloka_client.get_user_skills(user_id='fac97860c7929add8048ed2ef63b66fd'):
skill = toloka_client.get_skill(user_skill.skill_id)
print(,, user_skill.value)
List of classes and methods used in this recipe

See also

OverviewGetting OAuth tokenQuick start
toloka.autoquality [autoquality]