RepositoryGoUSUnited States
schollz

schollz/getsong

Download any song mp3 with no dependencies except ffmpeg

133stars
18forks
4issues
2views

getsong

travis go report card coverage godocs

This is a simple library that utilizes the rylio/ytdl YouTube downloader and ffmpeg to get almost any m4a of a song that you want to listen to. I wrote this so I could download m4as of my favorite Spotify playlists.

Disclaimer: Downloading copyright songs may be illegal in your country. This tool is for educational purposes only and was created only to show how YouTubes's API can be used to download music. Please support the artists by buying their music.

Install

go get -u github.com/schollz/getsong/...

Usage

The aim of this library to have a low (or zero) false positive rate, so it works best when the entered title + artist are spelled correctly.

Use as a program

$ getsong 'Getting in Tune' 'The Who'
Downloading 'Getting in Tune by The Who (W6-3rnD7FSc).webm'...
 524289 / 524289 [==========================] 100.00% 
...converting to m4a...
Downloaded 'Getting in Tune by The Who (W6-3rnD7FSc).m4a'

Use as a library

// download "True" by "Spandau Ballet"
fname, err := getsong.GetSong("True", "Spandau Ballet")
if err == nil {
    fmt.Printf("Downloaded '%s'\n", fname)
}

Contributing

Pull requests are welcome. Feel free to...

  • Revise documentation
  • Add new features
  • Fix bugs
  • Suggest improvements

License

MIT

Similar Projects

Discover other similar projects and AI models.

RepositoryC#
Tyrrrz/YoutubeDownloader

Downloads videos and playlists from YouTube

16.8k
Dec 2, 2026
RepositoryKotlin
maxrave-dev/SimpMusic

A cross-platform music app using YouTube Music for backend

14.2k
Dec 2, 2026
RepositoryPython
spotDL/spotify-downloader

Download your Spotify playlists and songs along with album art and metadata (from YouTube if a match is found).

27.0k
Nov 22, 2026
RepositoryKotlin
deniscerri/ytdlnis

Full-featured audio/video downloader for Android using yt-dlp

11.4k
Dec 1, 2026
RepositoryKotlin
Shabinder/SpotiFlyer

Kotlin Multiplatform Music Downloader, Supports Spotify / Gaana / Youtube Music / Jio Saavn / SoundCloud.

11.3k
Oct 6, 2024
RepositoryC#
NickvisionApps/Parabolic

Download web video and audio

7.9k
Dec 3, 2026
RepositoryKotlin
team-spotube/spotube

🎧 Open source music streaming app! Available for both desktop & mobile!

51.1k
Dec 1, 2026
RepositoryPython
harry0703/MoneyPrinterTurbo

利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.

147.4k
Dec 3, 2026
RepositoryGo
iawia002/lux

👾 Fast and simple video download library and CLI tool written in Go

31.9k
Mar 29, 2026