Get all the skills assigned to the Toloker with the ID specified in the request.
Connect the Toloka-Kit library to your script.
import toloka.client as toloka
Replace the sample API key with your own one.
toloka_client = toloka.TolokaClient('PlaceYourRealApiKey_Here', 'PRODUCTION');
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.get_user_skills(user_id='fac97860c7929add8048ed2ef63b66fd'):
skill = toloka_client.get_skill(user_skill.skill_id)
print(skill.name, user_skill.id, 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 70Programmer 54132692 50
The "skill-Toloker" pair ID allows you to get or remove the skill assigned to a specific Toloker.
import toloka.client as tolokatoloka_client = toloka.TolokaClient('PlaceYourRealApiKey_Here', 'PRODUCTION')for user_skill in toloka_client.get_user_skills(user_id='fac97860c7929add8048ed2ef63b66fd'): skill = toloka_client.get_skill(user_skill.skill_id) print(skill.name, user_skill.id, user_skill.value)
Last updated: February 7, 2023