Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

# MusicUtils Library to download music from list of songs (and websites such as billboards.com) and updating their metadata (Title, TrackNo, Artist, Album, AlbumArt, Lyrics etc.) //In development

## Installation

Make sure you’re using python3 and have pip installed and enabled. On the command line, simply run:

pip install musicutils

### Requirements:

MusicUtils requires ffmpeg to convert files to mp3.

On a linux system:

sudo apt install ffmpeg

On windows:

Installing ffmpeg is slightly trickier on windows. [Read the instructions here](http://adaptivesamples.com/how-to-install-ffmpeg-on-windows/).

On MacOS

brew install ffmpeg

brew link ffmpeg

## Usage

MusicUtils can be invoked from the commandline after installation.

mutils “Song Item 1” “Song Item 2” “Song Item 3” […]

to download individual files.

For example,

mutils “A Great Big World - Say Something”

Use mutils -f “songlist.txt” to download files using a text file containing song titles in individual lines.

songlist.txt is a list of song title-artist pairs, one in a line.

You may also replace a song title by it’s incomplete lyrics, and in most cases, it should work just fine.

In case of weird results, remember that the first result on Youtube is what is downloaded.

### Downloading songs from a list in a url

mutils –url https://www.thetoptens.com/indie-rock-songs/ –count 20

OR

mutils -u https://www.thetoptens.com/indie-rock-songs/ -n 20

Count is optional, defaults to 10.

Supported list sites: - https://www.thetoptens.com/

### Rearranging files

To arrange the music files which contain metadata neatly into folders (artist->album->files), use the following command.

mutils –arrange –directory /path/to/folder

or, more simply,

mutils -a -d path/to/folder

## Manual installation of the project

Clone the repository

git clone https://github.com/hundredrab/MusicUtils.git

Navigate into the project directory

cd MusicUtils

Install musicutils and its dependencies

python setup.py install

Metadata

Release files for MusicUtils 0.1.dev6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for MusicUtils 0.1.dev6
File Size Uploaded
MusicUtils-0.1.dev6.tar.gz 5.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for MusicUtils 0.1.dev6
File Interpreter ABI Platform
MusicUtils-0.1.dev6-py3-none-any.whl Python 3 none any Details

Total release size: 12.4 kB

Release files / MusicUtils-0.1.dev6.tar.gz

Download URL MusicUtils-0.1.dev6.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0c59a464c291b6254b204e351bcad1d56b2b5aa119648856da7d151502e3fbdb
BLAKE2b-256 checksum
How to use checksums
eb8d0f929750de6a873bd7a75cb1d114a46a2f0205d71dff3db6a5fd42139bad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

Release files / MusicUtils-0.1.dev6-py3-none-any.whl

Download URL MusicUtils-0.1.dev6-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a7c87b5b7cdc1af906ba983107c778f2ac9656d0636f6c686dfdd1ee809f7acc
BLAKE2b-256 checksum
How to use checksums
11bc079d615e39595eda9337fa6b9fce07772e53a69cd1c0c01bc68b2a6fd1fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page