Get now playing song's info from script?

Hi everyone, recently I'm developing a "Now Playing" widget for übersicht, I need to get the current playing song's information (like the song's title, artist, and playback progress) and show it on the user's desktop.
So how can I get their info from the terminal...?
Get now playing song's info from script?
 
 
Q