amkorousagi / Trendup

OIDC2020
0 stars 0 forks source link

python 통신 모듈 사용법 조사(0703) #31

Closed amkorousagi closed 4 years ago

amkorousagi commented 4 years ago

requests를 import하고

       response = requests.get(URL_VIDEO + "?part=statistics" + "&key=" + API_KEY + "&id=" + videoId)

이렇게 쓰고

       temp = json.loads(response.text)
       temp["key"]

응답을 이렇게 활용하면 된다