Playing from youtube

Hi!
I am looking for a simple way of playing random videos from youtube. I am working under mac os x, but finally I will move the program to Linux. Nevertheless, I would have a working version for both OS
It is my understading that I should grab the stream instead of the wed address and play it through GStreamer.
I wonder if there is any simpler way to do it or even if that’s the only way to do it.
Any advice will be highly appreciated.
Best,
Diego

Hello Diego, there is this post in the forum Picking a strategy for playing video from Youtube [Solved], that might be useful.
You need to install youtube-dl that is available in Linux via apt-get and im mac-os through brew.

Hello Edapx,
Thanks a lot for the reference. I already went over it but thought there may be a simpler way. I will try it again a give feedback.
Best,
Diego