module TikToker::Util

Defined in:

tiktoker/util.cr

Class Method Summary

Class Method Detail

def self.build_profile_url(username, language = "en") #

Builds a TikTok::UserProfile URL. Used to extract user info directly from the portal.

TikTok::Util.build_profile_url("username")
# => https://www.tiktok.com/@username?lang=en

[View source]
def self.generate_did : String #

Generates a random TikTok did (device ID). Keep in mind that this token is supposed to be long-lived and consistent between requests.

TikTok::Util.generate_did # => 3745502480601580487

[View source]
def self.retry_on_connection_error(&) #

[View source]