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.dev26.tar.gz (84.1 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.dev26-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tk3u8-0.3.2.dev26.tar.gz
  • Upload date:
  • Size: 84.1 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.dev26.tar.gz
Algorithm Hash digest
SHA256 10ab264b22b2b9da166e45fa073d64c7d88e0eba215e772e1a7a6f8ff7481bd6
MD5 625d6e8b3120dac48c8a424e1c963dcc
BLAKE2b-256 d5e1a7d25f09fa8987e86234f16723f6b3fad2f4b185d6de6f26fe91ece7597e

See more details on using hashes here.

Provenance

The following attestation bundles were made for tk3u8-0.3.2.dev26.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.dev26-py3-none-any.whl.

File metadata

  • Download URL: tk3u8-0.3.2.dev26-py3-none-any.whl
  • Upload date:
  • Size: 26.1 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.dev26-py3-none-any.whl
Algorithm Hash digest
SHA256 4f031d05c9365af016ac4c68a5cbb863449ddf1bab480dad13b56998b2ef7c4c
MD5 d37bbd0fa028e518f8088e27c556c75a
BLAKE2b-256 06d9dc2afcd0fdf4da97ee33739bdf0ac2d933809285a5153b71ef27e5cbafc7

See more details on using hashes here.

Provenance

The following attestation bundles were made for tk3u8-0.3.2.dev26-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