def get_custom_target_by_name(self, name, parent_name):

        with Timeout(self._network_timeout):
            targets = self.provider.get_custom_targets(
                key_name=parent_name, value_name=name,
            )

        if targets and len(targets) > 1:
            raise ParselmouthException('Given name is not unique')
        elif targets:
            return targets[0]
        else:
            return None
Get a custom target by its name
dataset/ETHPy150Open chartbeat-labs/parselmouth/parselmouth/base.py/Parselmouth.get_custom_target_by_name