Skip to content

Instantly share code, notes, and snippets.

@lu911
Created September 16, 2014 07:16
Show Gist options
  • Save lu911/fa424fb891f71a4cda04 to your computer and use it in GitHub Desktop.
Save lu911/fa424fb891f71a4cda04 to your computer and use it in GitHub Desktop.
deview.py
#-*- coding:utf8 -*-
import requests
def run():
url = 'http://deview.kr/2014/saveParticipant'
headers = {
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
'Referer': 'http://deview.kr/2014/registParticipant',
'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 \
Safari/537.36'
}
params = {
'episodeParticipationSeq': '1',
'episodeSeq': '3',
'chk_consent': 'on',
'name': u'',
'email_id': '',
'email': '',
'belong': u'',
'department': u'',
'jobPosition': 'Developer',
'job': u'',
'd2ReceiveYn': 'Y'
}
r = requests.post(url, data=params, headers=headers)
print r.content
if __name__ == "__main__":
run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment