Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
웹 API 요청 질문 관련 (2015-07-19)
# coding: utf-8
import requests
response = requests.get('', {'api_key':20141107174448, 'q':u'좋다'})
# content-length
cLen = response.headers['Content-Length']
# Get the content of the HTTP response
content = response.content.decode('utf-8').strip()

This comment has been minimized.

Copy link
Owner Author

@lseongjoo lseongjoo commented Jul 19, 2015

HTTP 요청 시, requests 패키지를 추천합니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.