Created
October 2, 2015 01:16
-
-
Save chwnam/c48626a9082326950858 to your computer and use it in GitHub Desktop.
iMBC FM4U 스트림 주소를 알아내는 파이썬 스크립트
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import urllib2, json, re | |
print json.loads(re.match(r'\((.+)\);', urllib2.urlopen('http://miniplay.imbc.com/WebLiveURL.ashx?channel=mfm&protocol=RTMP').read(), re.M|re.S).group(1))['AACLiveURL'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
여기에 다음 쉘 스크립트를 같이 적용: