For a simpler solution to generate TikTok stream keys check my other project here
This Python script is a valuable tool for content creators looking to broadcast on TikTok's live streaming platform using OBS Studio, an alternative to TikTok LIVE Studio. The script's standout feature is generating a stream key, a capability typically restricted and highly sought after. This stream key enables users to stream via OBS Studio, offering more control and flexibility over their live broadcasts. Additionally, the script provides the base stream URL and a shareable URL for the stream.
Either download and use the provided exe from here or follow the steps below to run the script. Ensure you have Python and PIP working. In the command line, install the required packages using the following command (run the command in the same directory as the script):
pip install -r requirements.txt
or if pip is not working, try:
python -m pip install -r requirements.txt
Simply run the script to open the GUI.
python TikTokStreamKeyGenerator.py
Press the login button to login to TikTok. After logging in, you can enter the game tag ID, stream title, and other options. Press the go live button to generate the stream key.
The script will output:
Please login first
error. What should I do?Try a different server from the one you're using.
Maximum number of attempts reached. Try again later.
error. What should I do?This error sometimes occurs when TikTok detects selenium. You can use this extension to export your cookies and import them into the script.
cookies.json
then start the app.
Yes, you need to have access to TikTok LIVE to use this script.