Skip to content

Instantly share code, notes, and snippets.

@kocogluali
Created November 4, 2014 10:51
Show Gist options
  • Save kocogluali/545ac3ed881a4f619d0f to your computer and use it in GitHub Desktop.
Save kocogluali/545ac3ed881a4f619d0f to your computer and use it in GitHub Desktop.
python-radio
#-*-coding:utf*8-*-
#!/usr/bin/python
import os
sozluk={'ask':'http://88.150.190.187:8020',
'avrasya':'http://88.150.190.188:1071',
'arabesk':'http://198.27.101.176:7446',
'imbat':'http://38.96.148.18:8127',
'sky':'http://198.27.101.189:8300'}
print (sozluk.keys())
secim=input('Radyo Adını Giriniz :')
try:
os.popen("mplayer %s" % sozluk[secim]).read()
except ValueError:
print ('Yukarıda yazanı görmüyormusun ?')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment