Skip to content

Instantly share code, notes, and snippets.

@boring-km
Last active March 18, 2019 04:03
Show Gist options
  • Save boring-km/c7ebbcbed0247122d364cfd08169be4e to your computer and use it in GitHub Desktop.
Save boring-km/c7ebbcbed0247122d364cfd08169be4e to your computer and use it in GitHub Desktop.
register_test
import requests
import json
import socket
import time
# import upload_dust
file = open('register.txt', 'r')
line = file.readline()
number = int(line)
file.close()
print('number = ', number)
datas = {'number':number}
head = {'content-type':'application/json'}
url='http://fountaingradle.run.goorm.io/register'
res = requests.post(url=url, data=json.dumps(datas),headers=head)
print(res.json())
time.sleep(5)
import upload_dust
# upload_dust.execute()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment