Learn R Programming

lares (version 4.8.4)

get_mp3: Download MP3 from URL

Description

This function downloads a YouTube video or Soundcloud or any other platform supported by the youtube-dl library, and converts it into a high quality MP3 file.

Usage

get_mp3(url, mp3 = TRUE, params = "", quiet = FALSE)

Arguments

url

Characeter. YouTube URL

mp3

Boolean. Add mp3 parameters?

params

Character. Additional parameters

quiet

Boolean. Keep quiet (or show query)?

youtube-dl

More info from the original developers and its code: youtube-dl's Github

See Also

Other Scrapper: geoStratum(), holidays(), ip_country(), readGS(), trendsRelated()

Examples

Run this code
# NOT RUN {
 # Download video from YouTube and convert to MP3
 get_mp3("https://www.youtube.com/watch?v=lrlKcCdVw9Q")
# }

Run the code above in your browser using DataLab