A Python program which uses BeautifulSoup and Youtube-dl to download a song from youtube
Project description
A Python program which uses BeautifulSoup and Youtube-dl to download a song from youtube
The result will be stored in the current working directory.
Usage
usage: getsong [-h] [-y] [-m] [-p] [-u] [-q] [-i ID] [--artist ARTIST] [--title TITLE] [--album ALBUM] term positional arguments: term Youtube search term optional arguments: -h, --help show this help message and exit -y, --yes Skip prompt -m, --musicvideo Get first result for <term>, not '<term> lyrics' -p, --print-path Prints path to file to stdout, so you can pipe it to a command or play the file or something -u, --print-url Prints URL to stdout without downloading the audio track -q, --quiet Hides youtube-dl output. Still shows y/n prompt if not hidden by -y -i ID, --id ID Skip search, lookup ID. Use "" for the search term instead --artist ARTIST Uses Mutagen to write the artist information to the output file --title TITLE Uses Mutagen to write the title information to the output file --album ALBUM Uses Mutagen to write the album information to the output file Track numbering currently unsupported by mutagen
Installation
Via pip:
pip3 install getsong
Alternatively:
Clone the repository, cd getsong
Run python3 setup.py install or pip3 install -e
ffmpeg (or avconv) is suggested to fix the container on the downloaded audio.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
getsong-2.0.1.tar.gz
(3.8 kB
view details)
Built Distribution
getsong-2.0.1-py3.5.egg
(8.0 kB
view details)
File details
Details for the file getsong-2.0.1.tar.gz
.
File metadata
- Download URL: getsong-2.0.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23c04237b66796876e88b729d2d61f2c8eb471d298e8d541abe061638c8ca85b |
|
MD5 | c9e2fb24a3c8739fdcc10bd4a0d2c3cc |
|
BLAKE2b-256 | 0f7b884d7967b63cf0682e971c69370529c5ab05cd798a9aa5e1e3c168037c31 |
File details
Details for the file getsong-2.0.1-py3.5.egg
.
File metadata
- Download URL: getsong-2.0.1-py3.5.egg
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e167a60f2710e670eeee47af4596e895fee5145e06f15c8101cf034e10fc485 |
|
MD5 | 8ca5196a0be43a60102c362715d8f1ee |
|
BLAKE2b-256 | a3741607801864f0444f949d12e6200fed6e60f347fdaf7eb51b752bbb2b4248 |