Simple tool to sort videos with directories by channel
- Python 100%
| .forgejo/workflows | ||
| youtubevideosorter | ||
| .gitignore | ||
| LICENSE | ||
| pyproject.toml | ||
| README.md | ||
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
- Shorts




