PyRadio: Command line internet radio player.
Ben Dowling - https://github.com/coderholic
Before installing PyRadio you have to prepare your system, so that you end up with a working installation. The process depends on the OS you are on.
Use your distribution method to install
When you are done, proceed to “Performing the installation”.
First thing you do is install python dependencies (assuming python 3 is installed):
pip3 install --upgrade requests dnspython psutil
Everything else you need to install and run pyradio is available on Homebrew. If you haven’t already downloaded its client, go ahead and do it.
Open a terminal and type:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Depending on your Mac OS version, you may have to install sed too:
brew install gnu-sed --default-names
Now it’s time to install a media player. You are free to install any one of them or even more than one…
1. MPV
brew install mpv
2. MPlayer
brew install mplayer
3. VLC
You can get VLC from the official site or from Homebrew.
a. Oficial package
You just go to videolan.org, download and install the program as you usually do with any other application.
Finally, add a symbolic link to the executable as follows:
sudo ln -s /Applications/VLC.app/Contents/MacOS/VLC /usr/local/bin/cvlc
b. Homebrew package
brew cask install vlc sudo ln -s /usr/local/bin/vlc /usr/local/bin/cvlc
Your system is ready now for pyradio to be installed. You can follow the instructions given at “Performing the installation”.
Windows installation is presented in its own page.
First thing you do is get the installation script. Open a terminal and type:
cd wget https://raw.githubusercontent.com/coderholic/pyradio/master/pyradio/install.py
or using curl:
cd curl -L https://raw.githubusercontent.com/coderholic/pyradio/master/pyradio/install.py -o install.py
Note: If you have neither wget or curl installed, just right click on this link and use your browser “Save link as” menu entry to save the file in your home folder.
Finally, execute the command:
python install.py
On Debian based systems you will have to execute:
python3 install.py
If for some reason you want a python 2 installation, execute:
python2 install.py
If you are on a pre 0.8.9 release and want to update PyRadio, just follow the instructions above, but add the “–force” command line parameter to the installation command.
So, instead of
python install.py
do a
python install.py --force