toloka.client.TolokaClient.get_user_skills
| Source code
Finds all Toloker's skills that match certain criteria.
get_user_skills
returns a generator. You can iterate over all found Toloker's skills using the generator. Several requests to the Toloka server are possible while iterating.
If you need to sort Toloker's skills use the find_user_skills method.
Parameters | Type | Description |
---|---|---|
user_id | Optional[str] | The ID of a Toloker. |
skill_id | Optional[str] | The ID of a skill. |
id_lt | Optional[str] | Skills with IDs less than the specified value. |
id_lte | Optional[str] | Skills with IDs less than or equal to the specified value. |
id_gt | Optional[str] | Skills with IDs greater than the specified value. |
id_gte | Optional[str] | Skills with IDs greater than or equal to the specified value. |
created_lt | Optional[datetime] | Skills created before the specified date. |
created_lte | Optional[datetime] | Skills created before or on the specified date. |
created_gt | Optional[datetime] | Skills created after the specified date. |
created_gte | Optional[datetime] | Skills created on or after the specified date. |
modified_lt | Optional[datetime] | Skills that changed before the specified date. |
modified_lte | Optional[datetime] | Skills that changed before the specified date. |
modified_gt | Optional[datetime] | Skills changed after the specified date. |
modified_gte | Optional[datetime] | Skills created on or after the specified date. |
batch_size | Optional[int] | A limit of items returned by each request to Toloka. The maximum allowed value: 1000. |
Yields:
The next matching Toloker's skill.
Yield type:
Generator[UserSkill, None, None]
Examples:
user_skills = list(toloka_client.get_user_skills(skill_id='11294'))
Last updated: August 28, 2023