Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 라즈베리파이
- python
- 맛집
- Excel
- 함수
- urllib
- port
- Unity
- tensorflow
- IOS
- ubuntu
- Linux
- javascript
- 날짜
- pandas
- MySQL
- flutter
- PyQt
- swift
- sqlite
- node.js
- GIT
- PyQt5
- 리눅스
- PER
- 다이어트
- mssql
- 유니티
- MS-SQL
- ASP
Archives
목록REST (1)
아미(아름다운미소)
python으로 REST API 호출
python을 이용하여 간단한 REST client를 만들어 보겠습니다. 먼저 http request를 위해 사용할 라이브러리로 httplig2를 선택하였습니다. httplib2 : https://github.com/httplib2/httplib2 httplib2를 설치 $ pip install httplib2 설치를 완료했으면 간단하게 테스트를 해보겠습니다. 아래의 코드를 작성하고 실행해 봅니다. import httplib2 http = httplib2.Http() url = 'https://jsonplaceholder.typicode.com/posts/1' response, content = http.request(url, 'GET') print(content) 아래와 같은 content가 나오면 성..
랭귀지/python
2018. 1. 5. 15:00