Create a skill that you can assign to Tolokers.
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');
Create a skill specifying:
You can choose your own values or have your own set of the skill parameters. Refer to the Skill class page for more details.
new_skill = toloka_client.create_skill(
hidden=False,
name='Programmer', public_name={'EN': 'Programmer'}, public_requester_description={ 'EN': 'You are an expert in programming languages' })
The create_skill()
request will return the Skill class object. You can use its attributes to print the information you need.
print(new_skill.id)
You should get an output with the created skill ID which looks like this.
12648
import toloka.client as tolokatoloka_client = toloka.TolokaClient('PlaceYourRealApiKey_Here', 'PRODUCTION')new_skill = toloka_client.create_skill( hidden=False, name='Programmer', public_name={'EN': 'Programmer'}, public_requester_description={ 'EN': 'You are an expert in programming languages' })print(new_skill.id)
Last updated: February 7, 2023