IT/Python

Python Http API

민쌍 2020. 7. 7. 16:54

HTTP Get Request

client.py

import urllib

url  = "http://minssan9.iptime.com/api/<request uri>"

response = urllib.urlopen(url).read()

print response

터미널 실행 후 client.py 파일 경로 찾아가서

python client.py

바로 확인 가능하다

728x90
반응형