python rest api (1) 썸네일형 리스트형 [python] REST API 호출 (requests 이용) requests 이용 예시 1. requests install docs.python-requests.org/en/latest/user/install/#install python -m pip install requests 2. get import requests # GET res = requests.get('url') print(str(res.status_code) + " | " + res.text) 3. post import requests import json # POST (JSON) headers = {'Content-Type': 'application/json; chearset=utf-8'} data = {'title': 'dummy title', 'id': 1, 'message': 'hello w.. 이전 1 다음