Skip to content

Instantly share code, notes, and snippets.

@nesffer
nesffer / python-added-urlopen.py
Created March 15, 2016 00:19
파이썬에서 query, header 추가해서 urlopen 사용하기
import urllib.parse
import urllib.request
url = 'http://example.com'
values = {'name': 'nesffer',
'query': 'python'}
headers = {'Content-Type': 'text/plain'}
data = urllib.parse.urlencode(values).encode('utf-8')
req = urllib.request.Request(url, data, headers)
f = urllib.request.urlopen(req)
@parmentf
parmentf / GitCommitEmoji.md
Last active May 6, 2024 18:30
Git Commit message Emoji