Skip to content

BOTCAHX/TikTokPy

Repository files navigation

TikTokPy Downloader

TikTokPy Downloader is a web application that allows users to easily download videos and audio from TikTok. This application uses Flask as the backend and integrates with an external API to retrieve video details.

Features

  • Enter a TikTok URL to get video and audio.
  • Displays thumbnail, video title, and options to download video and audio.
  • Responsive and modern user interface using Tailwind CSS.

Technologies Used

  • Flask: A web framework for Python.
  • HTML, CSS, JavaScript: For the front end.
  • jQuery: For AJAX and DOM interactions.
  • SweetAlert2: For displaying notifications and modals.

Installation

  1. Clone this repository:

    git clone https://github.com/BOTCAHX/TikTokPy.git
    cd TikTokPy
  2. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate  # on Linux/Mac
    .\venv\Scripts\activate   # on Windows
  3. Install dependencies:

    pip install -r requirements.txt
  4. Run the application:

    python3 app.py
  5. Open your browser and access http://127.0.0.1:5000.

Build the Docker image

docker build -t flask-app .

Run the Docker container

docker run -p 5000:5000 flask-app

How to Use

  1. Enter the TikTok video URL in the provided field.
  2. Click the "Download" button.
  3. Wait for the data to be fetched, and you will see the thumbnail and options to download the video and audio.

Contributing

Feel free to fork this repository and submit a pull request if you have any suggestions or improvements.

License

MIT