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.dev18.tar.gz (82.5 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.dev18-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tk3u8-0.3.2.dev18.tar.gz
  • Upload date:
  • Size: 82.5 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.dev18.tar.gz
Algorithm Hash digest
SHA256 44f3b532772b40aea34a9b5d73f9962fdddc7f4d1952879d7ef0966685df6e32
MD5 622c4fcca8048e0834ebfefa4a01827b
BLAKE2b-256 1f0a1ec0f0741ea836709ab28001cd3835c7ff9e9933194200d7939326aacb4e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: tk3u8-0.3.2.dev18-py3-none-any.whl
  • Upload date:
  • Size: 25.3 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.dev18-py3-none-any.whl
Algorithm Hash digest
SHA256 d723b35a0fccd26551ed08227207cd2941fcd6eb979aeb43fba4999fea26292e
MD5 718743fcaaf3b268f1530f85639baa17
BLAKE2b-256 82e8ea1c242dc7db119d5ee9b873faad2d1e46a9850a7585ed0514404c91c69d

See more details on using hashes here.

Provenance

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