class TikToker::Client::PortalClient
- TikToker::Client::PortalClient
- Reference
- Object
Defined in:
tiktoker/client/portal_client.crConstant Summary
-
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 Method Summary
-
#find_user(username : String) : TikTok::InitialProps
Find an user by username.
Instance Method Detail
def find_user(username : String) : TikTok::InitialProps
#
Find an user by username.
client = Client::PortalClient.new
client.find_user("charlidamelio") # => TikTok::UserProfile