Skip to main content

Simple tool to sort videos with directories by channel

Project description

YouTube Video Sorter

Simple tool to sort videos with directories by channel

How to use?

What you need:

  • Python 3
  • A directory full of videos downloaded with yt-dlp
  • A YouTube API key

Installation

$ pipx install youtubevideosorter
Getting an API key

Go to Google Cloud Console, create a new project if needed

In the "Quick Access" section, click "APIs & Services"

Click the "+ Enable APIs & services" button

Search and enable "YouTube Data API v3"

On the right side of the screen, click the "Credentials" section, click "+ Create credentials" and click "API key"

Now you have your API key!

Usage

Make sure your current working directory is the directory full of videos.

$ ytvs [api key]

Now your videos will be sorted with this directory structure:

  • Channel Name (@handle)
    • Shorts
      • Some Short [video id].mp4
    • Some video [video id].mp4

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

youtubevideosorter-1.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

youtubevideosorter-1.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file youtubevideosorter-1.2.tar.gz.

File metadata

  • Download URL: youtubevideosorter-1.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for youtubevideosorter-1.2.tar.gz
Algorithm Hash digest
SHA256 e6c0de760c7aca701381f1940dd130b9805e2ee8fded12bf9708b950f44591ca
MD5 20b21b647a9e8d2196c24adfd2a3a8d5
BLAKE2b-256 0f6652e0e094465639aba802b37eef7b9ee1c9176b55955cae5621b62bf18b7c

See more details on using hashes here.

File details

Details for the file youtubevideosorter-1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for youtubevideosorter-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d976cb85399202da846d6d0e7c63e528625794dace8a1a9c362ea9a9590aa118
MD5 04618e2de187e93d22538b24b7501632
BLAKE2b-256 8637fce18e22e9a4e7ad148a875bb2074fdec5475842021686fe26ed0cd91b83

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