Skip to main content

TikTokLiveWrapper

This project allows you to connect to TikTok livestreams and access available data using a creator's @username. It is designed to retrieve information from TikTok livestreams and cannot be used to post content or simulate interactions.

Getting Started

  1. Install the module:

    pip install TikTokLiveWrapper

Create a connection to the chat:

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

client = TikTokLiveClient(unique_id="@username")

@client.on(ConnectEvent)
async def on_connect(event):
    print(f"Connected to @{event.unique_id}")

async def on_comment(event):
    print(f"{event.user.nickname} -> {event.comment}")

client.add_listener(CommentEvent, on_comment)

client.run()

Key Methods

  • run: Connect to the livestream.
  • add_listener: Add a listener for events.

Events

Available events include: ConnectEvent, CommentEvent.

License

MIT License. See the LICENSE file for details.

Metadata

Release files for TikTokLiveWrapper 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for TikTokLiveWrapper 1.0.0
File Size Uploaded
tiktoklivewrapper-1.0.0.tar.gz 42.6 kB Details

Release files / tiktoklivewrapper-1.0.0.tar.gz

Download URL tiktoklivewrapper-1.0.0.tar.gz
Size 42.6 kB
Tags Source
SHA-256 checksum
How to use checksums
87f41235f771b5965588e2c1a74e868a4fba896df2841072ff688e7ea44ca771
BLAKE2b-256 checksum
How to use checksums
e11b2cb28be1262eb7d39e5425bbdd4749226050e582437dd540e6bc421d1dee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page