Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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.
Release History

Release History

This version
History Node

2.0.1

History Node

2.0.0

History Node

1.5.3

History Node

1.5.2

History Node

1.5.1

History Node

1.4.1

History Node

1.4.0

History Node

1.3.0

History Node

1.2.2

History Node

1.2.1

History Node

1.2.0

History Node

1.1.6

History Node

1.1.5

History Node

1.1.4

History Node

v1.1.3

History Node

v1.1.2

History Node

v1.1.1

History Node

v1.1.0

History Node

v1.0.4

History Node

v1.0.3

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
getsong-2.0.1-py3.5.egg (8.0 kB) Copy SHA256 Checksum SHA256 3.5 Egg Feb 9, 2016
getsong-2.0.1.tar.gz (3.8 kB) Copy SHA256 Checksum SHA256 Source Feb 9, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting