Skip to main content

Simple tool to sort videos with directories by channel

Project description

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for youtubevideosorter-1.1.tar.gz
Algorithm Hash digest
SHA256 6a331a9d5dfa6cd480f349ed12de3499d8881d9105ad6921aff3ec98e1396a30
MD5 f546fa6c631798dc4aad964a24543bdf
BLAKE2b-256 daf0a9c316ec9975e99a1e08981727ec834a2db3a2afb32beceaad81d26d6deb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for youtubevideosorter-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0ab0abea41190f9f3e18881e833b195b12da33cda0c4f35416456f16f608773f
MD5 ab43807441aab192546b7de2406544ca
BLAKE2b-256 efdeab31f57822f0731b52452da3bfb986344e96929612a54cb62991cce70647

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