TikTokApi.browser_utilities.browser_interface
View Source
import abc class BrowserInterface(abc.ABC): @abc.abstractmethod def __init__(self, **kwargs): pass @abc.abstractmethod def get_params(self, page) -> None: pass # Returns verify_fp, device_id, signature, tt_params @abc.abstractmethod def sign_url(self, calc_tt_params=False, **kwargs) -> tuple[str, str, str, str]: pass @abc.abstractmethod def clean_up(self) -> None: pass
View Source
class BrowserInterface(abc.ABC): @abc.abstractmethod def __init__(self, **kwargs): pass @abc.abstractmethod def get_params(self, page) -> None: pass # Returns verify_fp, device_id, signature, tt_params @abc.abstractmethod def sign_url(self, calc_tt_params=False, **kwargs) -> tuple[str, str, str, str]: pass @abc.abstractmethod def clean_up(self) -> None: pass
Helper class that provides a standard way to create an ABC using inheritance.
View Source
@abc.abstractmethod def get_params(self, page) -> None: pass
#  
@abc.abstractmethod
def
sign_url(self, calc_tt_params=False, **kwargs) -> tuple[str, str, str, str]:
View Source
@abc.abstractmethod def sign_url(self, calc_tt_params=False, **kwargs) -> tuple[str, str, str, str]: pass
View Source
@abc.abstractmethod def clean_up(self) -> None: pass