You are not logged in.

#1 2013-11-26 04:30:08

Registered: 2013-06-11
Posts: 28

Listening to from command line


If someone is interested, you can do this by installing python-grooveshark or python2-grooveshark package in ArchBsd

 sudo pacman -S python2-grooveshark 

You can find also some examples how to play the most popular songs or radio streams here: … r/examples
I have added the possibility to play playlists based on theyr id (the ending numbers from the url)

from __future__ import print_function

import subprocess
import sys
from grooveshark import Client

client = Client()

for song in client.playlist(sys.argv[1]).songs:

Save the above code as or whatever name you want and use it as\

python2.7 7508662

the last parameter is the id

I am using mplayer, but you could use also mpg123.


Board footer

Powered by FluxBB