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.1.tar.gz (55.6 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.1-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tk3u8-0.3.1.tar.gz
  • Upload date:
  • Size: 55.6 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.1.tar.gz
Algorithm Hash digest
SHA256 6579dc9ca1235348a267048c42a65812de74387da8f15b45da00ffd1a3364641
MD5 8abd3028d4d39789b02608059877599b
BLAKE2b-256 73ea1c1a506b815105f07ce88628986c60349fa999813b7880a086af1f2dd176

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tk3u8-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 21.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e6856d5f26828052a456f67add519ee72d13c80d13ef3acdecabb8e16128e816
MD5 adf394a31032404e42c9c3588a8a7274
BLAKE2b-256 a80076de25a55287414316d3494895b36202fe1cdeffc59a54c5a64e3f8b56de

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