Getting the YouTube mp3

Hello, im doing a school project, and im interested if there is a way to get the mp3 file from a YouTube link, and then play it?
Thanks in advance :smiley:

Here is a topic that might help you

1 Like

Thanks, I got a little more close the end, but I dont quite understand the code in the topic you mentioned.


I understand that the part I circuled is the one that gets to the website, from where you then download the data, but from which part does Player1 then know to play this YouTube song?

Never mind, I figured its in the last block in the right. My bad

But would you mind explaining what this part of the code does?


Thanks in advance :smiley:

With the first Web1.Get, an html page is returned, with links embedded inside it to the mp3 file (4 different bitrates). The procedure first parses the html to extract the video name, then parses again to extract the url to the mp3, at the bitrate set. A label is set to the video name, and the player source is set to the mp3 url.

1 Like