http://stackoverflow.com/questions/22676/how-do-i-download-a-file-over-http-using-python
import urllib
response = urllib.urlopen('http://www.example.com/sound.mp3')
mp3 = response.read()
Will work fine. Or, if you don't want to deal with the "response" object you can call read() directly:
import urllib
mp3 = urllib.urlopen('http://www.example.com/sound.mp3').read()
'Programming' 카테고리의 다른 글
C preprocessor tricks (0) | 2012.06.20 |
---|---|
(Javascript) JScript Language Reference (Windows Scripting - JScript) (0) | 2012.06.19 |
(Javascript) how to display a message in console window? (0) | 2012.06.19 |
(Javascript) is there a difference between <script language="javascript> and <script type="text/javascript"> (0) | 2012.06.18 |
(Javascript) Math.random (0) | 2012.06.18 |