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

Requirements

  • Windows or Linux
  • 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.1
    
  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}] 
                 [-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:

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.2.dev24.tar.gz (84.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.2.dev24-py3-none-any.whl (26.2 kB view details)

Uploaded Python 3

File details

Details for the file tk3u8-0.3.2.dev24.tar.gz.

File metadata

  • Download URL: tk3u8-0.3.2.dev24.tar.gz
  • Upload date:
  • Size: 84.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tk3u8-0.3.2.dev24.tar.gz
Algorithm Hash digest
SHA256 2a65842ced6b20cc56660c49536cb3d74c0fda7c4e05ad56f73cd6f8eb50c92c
MD5 2622a757ebbbbff93281997882336b2d
BLAKE2b-256 8e4c9ff636929a0d99b04bd86aa6cb9dd3cd3b87f479019d8526070becf34353

See more details on using hashes here.

Provenance

The following attestation bundles were made for tk3u8-0.3.2.dev24.tar.gz:

Publisher: publish_to_pypi.yml on Scoofszlo/tk3u8

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tk3u8-0.3.2.dev24-py3-none-any.whl.

File metadata

  • Download URL: tk3u8-0.3.2.dev24-py3-none-any.whl
  • Upload date:
  • Size: 26.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tk3u8-0.3.2.dev24-py3-none-any.whl
Algorithm Hash digest
SHA256 11c0434ba4bf9a9a2cf2fc4edc3dd6973983ddb425481d6a5e74fa0cd8009f16
MD5 edaf44dcf489cf48a68e19e86b02efd6
BLAKE2b-256 2272613a75cb2cebffaac4c7e09a8d0b9f544f888826e5e3e528dbfa28551ba9

See more details on using hashes here.

Provenance

The following attestation bundles were made for tk3u8-0.3.2.dev24-py3-none-any.whl:

Publisher: publish_to_pypi.yml on Scoofszlo/tk3u8

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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