SameDomainConditionV1

toloka.client.project.template_builder.conditions.SameDomainConditionV1 | Source code

SameDomainConditionV1(
self,
data: Optional[Any] = None,
original: Optional[Any] = None,
*,
hint: Optional[Any] = None,
version: Optional[str] = '1.0.0'
)

Checks if the link that you entered belongs to a specific site. If it does, returns true, otherwise, false.

Links must be specified in full, including the protocol (http, https, ftp).

The www. subdomain is ignored when checking, meaning that links to www.example.com and example.com are considered to be the same.

How to pass a link address:

Parameters Description

ParametersTypeDescription
dataOptional[Any]

The link address to be checked. If you don't specify it, the value returned by the parent component (the one that contains condition.same-domain) is used.

originalOptional[Any]

The link address that your link is compared to.

hintOptional[Any]

Validation error message that a Toloker will see.

Toloka-Kit
OverviewGetting OAuth tokenQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming