TikTokLive icon indicating copy to clipboard operation
TikTokLive copied to clipboard

Get TikTok live information without event

Open Silme94 opened this issue 1 year ago • 4 comments

Is there a way to get live information but with no event? Like for example a function to get the numbers of like or something? For example:

from TikTokLive import TikTokLiveClient
from TikTokLive.events import ConnectEvent, CommentEvent

# Create the client
client: TikTokLiveClient = TikTokLiveClient(unique_id="@isaackogz")

if __name__ == '__main__':
    # -- Exmaples --
    client.getLikes() # get the numbers of likes
    client.getViewvers() # get the numbers of people who are watching the live
    client.getGift("Rose") # return number of roses

Silme94 avatar Jul 11 '24 17:07 Silme94

You can grab room info which should have all this.

isaackogan avatar Jul 12 '24 17:07 isaackogan

How? Because when i check the documentation i only see events. By the way i wanna get live information this way so i can just make an api to collect data, for example http://localhost?username=@isaackogz and it returns json data with live information.

Silme94 avatar Jul 12 '24 18:07 Silme94

https://isaackogan.github.io/TikTokLive/TikTokLive.client.web.routes.html

isaackogan avatar Jul 12 '24 18:07 isaackogan

can you show me an example?

Silme94 avatar Jul 14 '24 13:07 Silme94

No

isaackogan avatar Sep 13 '24 22:09 isaackogan