Skip to main content

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 as a downloader. Credits to them!

Requirements

  • Windows OS
  • Python >=3.10.0
  • ffmpeg
  • uv
  • Git

Installation

  1. Install Python 3.10.0 or above. Ensure Add Python x.x to PATH is checked.
  2. Install ffmpeg. Ensure ffmpeg is added to PATH.
  3. Install Git.
  4. Install uv, through pip command or via Standalone installer.
    pip install uv
    
  5. Clone this repository using Git.
    git clone https://github.com/Scoofszlo/tk3u8.git
    
  6. Change the current directory to the project's folder.
    cd tk3u8
    
  7. 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.0
    
  8. 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}] 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)
    

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:

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!:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tk3u8-0.3.0.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tk3u8-0.3.0-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file tk3u8-0.3.0.tar.gz.

File metadata

  • Download URL: tk3u8-0.3.0.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for tk3u8-0.3.0.tar.gz
Algorithm Hash digest
SHA256 02bfe8de5ff1087ad3d0fef5c73c147d7f9a133759e764e61c7363a3766c2d19
MD5 c6d44652de76956f0c073bd079298506
BLAKE2b-256 6dda88b705aa1a9ca929c8d05d9bea47b37fc1507d198c58c0cc0daaa8509245

See more details on using hashes here.

File details

Details for the file tk3u8-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: tk3u8-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for tk3u8-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 716dba21cfa1b81da73c92b05a9cf5a6af3b576dbfc9fa9bf28af1fb65c49e73
MD5 edf7b77e6182bd9184f809e722dc78cb
BLAKE2b-256 e4ae580b0710b5b261f72ee555b7e85a15ba57b7d9a64d3fae94b5888ee5bae3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page