Created
November 4, 2014 10:51
-
-
Save kocogluali/545ac3ed881a4f619d0f to your computer and use it in GitHub Desktop.
python-radio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*-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