Skip to main content

Download all the songs in a youtube mix.

Project description

MIX SPLITTER

Download all the songs in a youtube mix using a console script.

This script reads the songs in the description or a source and downloads them separetely using youtube-dl.

Prerequisites

Since this script uses youtube-dl we need to install some of its dependencies.

sudo apt-get install ffmpeg
sudo apt-get install atomicparsley

This script also requires:

  • Python 3
  • Pip 3

Installation

If you want to use the script globally, make sure you're not inside a virtual environment

pip3 install mix-splitter

Type mix_splitter in the console
If that worked you should see this:

usage: mix_splitter.py [-h] -u URL [-l LOCATION] [-a ARTIST] [-s SOURCE] mix_splitter.py: error: the following arguments are required: -u/--url

If you don't see that, you need to do the following step:

Add ~/.local/bin to $PATH
  1. Open bash_profile
    sudo nano ~/.bash_profile
  2. Paste this at the end of the file
    export PATH=$PATH:~/.local/bin
  3. Restart the terminal

Usage

Basic

mix_splitter -u '<YOUTUBE_MIX_URL>'

Note 1: Make sure to enclose the URL with quotes
Note 2: That will dowload the songs in the current directory

If you want specify the directory where the songs are downloaded

with -l
mix_splitter -u '<YOUTUBE_MIX_URL>' -l /directory/to/download/the_songs


Specify album artist

Sometimes the mixes' description just contain the title of the songs (with no artist). This is usually an artist's album. To download these kind of mixes, you can specify the name of the artist with -a.

mix_splitter -u '<YOUTUBE_MIX_URL>' -a <ARTIST>

What mixes are compatible?

Those that have the songs in the description.

Sometimes the mixes don't contain the song titles in the description, but they're provided in the comments.

In a case like that, copy the the part of the comment that contains the songs and paste that in a new .txt file.

Then execute the script with the command -s and append the path of that .txt file.

mix_splitter -s /file/that/contains/the_songs.txt

Note 3: Since that file already contains the songs to download, the youtube mix url is no longer necessary. So just providing the path is enough.

License

This project is licensed under the MIT License - see the LICENSE file for details

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

mix_splitter-0.0.3.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

mix_splitter-0.0.3-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file mix_splitter-0.0.3.tar.gz.

File metadata

  • Download URL: mix_splitter-0.0.3.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for mix_splitter-0.0.3.tar.gz
Algorithm Hash digest
SHA256 2a02c8859f787145718f0edb98467691fa3962abfdf6a4c6a23a9de2aabb0d74
MD5 d0558b6872df501b9c2541d42fbf18db
BLAKE2b-256 302fedb6f0ae4f2b4a2ca338f08984d3e1f544e35f972632d728f7862ec6a0e5

See more details on using hashes here.

File details

Details for the file mix_splitter-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: mix_splitter-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for mix_splitter-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0625cf6215096fbc7708f7ced3ed8853cbdc8260eb4b008b360b0bfc9036a3a8
MD5 2d4184fecdfbb584c1413106171be186
BLAKE2b-256 586a0a8badecc5002c3e382cf8e784207b04f1da1c78a6d4210fe9336b6742b0

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