A TikTok live downloader, written in Python.
Project description
tk3u8
tk3u8 is a Python program that helps you download live streams from TikTok. The project was based and built from Michele0303's tiktok-live-recorder, and modified for ease of use and to utilize yt-dlp and ffmpeg as a downloader. Credits to them!
Requirements
- Windows or Linux
- Python
>=3.10.0 - ffmpeg
- uv
- Git
Installation
- Install Python 3.10.0 or above. Ensure
Add Python x.x to PATHis checked. - Install ffmpeg. Ensure ffmpeg is added to PATH.
- Install Git.
- Install uv, through
pipcommand or via Standalone installer.pip install uv
- Clone this repository using Git.
git clone https://github.com/Scoofszlo/tk3u8.git
- Change the current directory to the project's folder.
cd tk3u8
- Use the latest published release. (Skip this step if you want to use all of latest changes and updates from this repository.)
git checkout tags/v0.3.1
- Run the program.
uv run tk3u8 -h
When installed properly, the output should look like this:Usage: tk3u8 [-h] [-q {original,uhd_60,uhd,hd_60,hd,ld,sd}] [--proxy PROXY] [--wait-until-live] [--timeout TIMEOUT] [--log-level {DEBUG,ERROR}] [-v] username tk3u8 - A TikTok live downloader Positional Arguments: username The username to be used for recording live stream Options: -h, --help show this help message and exit -q {original,uhd_60,uhd,hd_60,hd,ld,sd} Specify the quality of the video to download. Default: original --proxy PROXY The proxy server to use for downloading. Sample format: 127.0.0.1:8080 --wait-until-live Let the program wait until the user goes live to start downloading stream --timeout TIMEOUT Set the timeout in seconds before rechecking if the user is live. --log-level {DEBUG,ERROR} Set the logging level (default: no logging if not used) -v, --version Show the program's version
Quickstart
After installation, you can now use the project's folder, open the terminal there and run, for example,uv run tk3u8 -h every time.
To download a live stream from a user, simply run:
uv run tk3u8 username
If the user is not live, the program will raise an error:
tk3u8.exceptions.UserNotLiveError: User @username is not live.
For complete guide on how to use the program, head over to the Usage guide.
Documentation
The project documentation is available at the wiki of this repository. These includes detailed step-by-step installation, usage guide, configuration guide, and some information about common issues and how to fix them. Here are some of the specific links for each one:
- Installation Guide
- Usage Guide
- Configuration Guide
- Issues - Recommended to check for those who are having regular issues with
WAFChallengeError,StreamLinkNotFoundError, andStreamDataNotFoundErrorerrors.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Legal Disclaimer
The use of this software to download content without the permission may violate copyright laws or TikTok's terms of service. The author of this project is not responsible for any misuse or legal consequences arising from the use of this software. Use it at your own risk and ensure compliance with applicable laws and regulations.
This project is not affiliated, endorsed, or sponsored by TikTok or its affiliates. Use this software at your own risk.
Acknowledgements
Special thanks to Michele0303 for their amazing work on tiktok-live-recorder, which served as the foundation for this project.
Contact
For questions or concerns, feel free to contact me via the following!:
- Gmail - scoofszlo@gmail.com
- Discord - @scoofszlo
- Reddit - u/Scoofszlo
- Twitter - @Scoofszlo
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tk3u8-0.3.2.dev17.tar.gz.
File metadata
- Download URL: tk3u8-0.3.2.dev17.tar.gz
- Upload date:
- Size: 82.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91df2f8727537829a203ae2fb8aff1bf2d9d12184550c2e1aff0e50a9610101c
|
|
| MD5 |
7fe3604058808ae7d7aa7e23476ecfd2
|
|
| BLAKE2b-256 |
1005b33fdb666aed946d5227e91fe66a1f35e1f4c7073aa5fe98513e8cb0abc2
|
Provenance
The following attestation bundles were made for tk3u8-0.3.2.dev17.tar.gz:
Publisher:
publish_to_pypi.yml on Scoofszlo/tk3u8
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tk3u8-0.3.2.dev17.tar.gz -
Subject digest:
91df2f8727537829a203ae2fb8aff1bf2d9d12184550c2e1aff0e50a9610101c - Sigstore transparency entry: 245539591
- Sigstore integration time:
-
Permalink:
Scoofszlo/tk3u8@ff99ae3442fbee96fe96849bc04893b3993892c1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Scoofszlo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_to_pypi.yml@ff99ae3442fbee96fe96849bc04893b3993892c1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tk3u8-0.3.2.dev17-py3-none-any.whl.
File metadata
- Download URL: tk3u8-0.3.2.dev17-py3-none-any.whl
- Upload date:
- Size: 24.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
759e65cfd58ac29ea80db070fbb2ec361d38541630f01dece140b63ab46e6f9d
|
|
| MD5 |
2eebf34f1a80eb360adc56bd56b22cf4
|
|
| BLAKE2b-256 |
c183110cf9b69635cb9a711d61bfd2724158eeee9dcba567dc4470f36eac4771
|
Provenance
The following attestation bundles were made for tk3u8-0.3.2.dev17-py3-none-any.whl:
Publisher:
publish_to_pypi.yml on Scoofszlo/tk3u8
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tk3u8-0.3.2.dev17-py3-none-any.whl -
Subject digest:
759e65cfd58ac29ea80db070fbb2ec361d38541630f01dece140b63ab46e6f9d - Sigstore transparency entry: 245539594
- Sigstore integration time:
-
Permalink:
Scoofszlo/tk3u8@ff99ae3442fbee96fe96849bc04893b3993892c1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Scoofszlo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_to_pypi.yml@ff99ae3442fbee96fe96849bc04893b3993892c1 -
Trigger Event:
push
-
Statement type: