PYTHON1 Python으로 json파일 받아오기, https 통신하기 카카오 2차 코테 준비로 후다닥 정리해보았습니다. https 통신 import requests base_url = "base_url넣기" def post_start(path, data): headers = { 'Content-Type': 'application/json' # ... 기타등등 헤더파일 반영 } full_path = base_url + "/" + path response = requests.post(full_path, headers=headers, data=data) return response.text def get_data(path, auth_key): headers = { # ... 기타등등 헤더파일 반영 'Content-Type': '.. 2021. 9. 22. 이전 1 다음