Skip to main content

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.

Metadata

Release files for getsong 2.0.1

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

Source distribution (sdist)

Source distribution for getsong 2.0.1
File Size Uploaded Provenance
getsong-2.0.1.tar.gz 3.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for getsong 2.0.1
File Interpreter ABI Platform
getsong-2.0.1-py3.5.egg Legacy Egg format - - Details

Total release size: 11.8 kB

Release files / getsong-2.0.1.tar.gz

Download URL getsong-2.0.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
23c04237b66796876e88b729d2d61f2c8eb471d298e8d541abe061638c8ca85b
BLAKE2b-256 checksum
How to use checksums
0f7b884d7967b63cf0682e971c69370529c5ab05cd798a9aa5e1e3c168037c31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / getsong-2.0.1-py3.5.egg

Download URL getsong-2.0.1-py3.5.egg
Size 8.0 kB
Tags Egg
SHA-256 checksum
How to use checksums
3e167a60f2710e670eeee47af4596e895fee5145e06f15c8101cf034e10fc485
BLAKE2b-256 checksum
How to use checksums
a3741607801864f0444f949d12e6200fed6e60f347fdaf7eb51b752bbb2b4248
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for getsong 2.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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