One more, using urlretrieve
:
import urllib
urllib.urlretrieve ("http://www.example.com/songs/mp3.mp3", "mp3.mp3")
(for Python 3+ use 'import urllib.request' and urllib.request.urlretrieve)
출처 : http://stackoverflow.com/questions/22676/how-do-i-download-a-file-over-http-using-python
'개발 > PYTHON' 카테고리의 다른 글
flatMap (0) | 2017.02.13 |
---|---|
random 하게 list data split (0) | 2017.01.31 |
reload (0) | 2017.01.31 |
python list filtering 방법 (0) | 2017.01.25 |
python list 초기화 (0) | 2017.01.22 |
댓글