class

TikToker::Client::PortalClient

Inherits Reference / Object

Constants

INITIAL_PROPS_REGEX = /<script id="__NEXT_DATA__".*?>(.*?)<\/script>/
REGEX_MATCH_POS = 1
USER_AGENT = "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"

Instance methods

find_user(username : String) : TikTok::InitialProps

Find an user by username.

client = Client::PortalClient.new
client.find_user("charlidamelio") # => TikTok::UserProfile
Source