Skip to main content

A script to download and convert YouTube videos to either video or audio format.

Project description

YouTube Video Downloader and Converter

This script downloads and converts YouTube videos to either video or audio format. It can download videos from a specific channel or a single video URL.

Requirements

  1. ffmpeg to be installed on the system.
sudo apt install ffmpeg
  1. If desired to download all of the videos from a specified channel then YouTube Data API v3 key must be created.

Installation

Install from pypi.org

    pip install youtubetogo

Project

You can install the package using pip from the source directory:

``bash git clone https://github.com/kdcllc/youtubetogo

```bash
    pip install .

Command Line Usage

    youtubetogo -u <video_url> [-a]

    # YouTube Data API v3 api key is required
    # store the key in .env file use .env.sample file
    youtubetogo -c <channel_id> [-a]
python main.py -u <video_url> [-a]
python main.py -c <channel_id> [-a]

Arguments

  • -a, --audio: Convert videos to audio
  • -u, --url: URL of the video to download and convert
  • -c, --channel: Channel ID to download and convert videos from

Deploy

pip install build twine
python -m build
twine upload dist/*

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

youtubetogo-0.1.3.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

youtubetogo-0.1.3-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file youtubetogo-0.1.3.tar.gz.

File metadata

  • Download URL: youtubetogo-0.1.3.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for youtubetogo-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c33fee8d99a9398459ad7f4d8094dc9f8984a8530c88cf7717e5d3db30a8bc58
MD5 e1963babf03585403514f2d312091729
BLAKE2b-256 9d1a22f150a179d4da5db2e8059f6c69a30117957c7b1b17d44b5d0236209ded

See more details on using hashes here.

File details

Details for the file youtubetogo-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: youtubetogo-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for youtubetogo-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1969f0a45e60711fe20a3d5be6884b2765d7279acc356bdfbade1ef05308c454
MD5 134286f30ba6592da5f22ea0c4cc427b
BLAKE2b-256 0441e331da8929f3e136bf4a034531bf9e9b49fce7ce3bd7fe46b3ba849eb169

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