Last active
March 18, 2019 04:03
-
-
Save boring-km/c7ebbcbed0247122d364cfd08169be4e to your computer and use it in GitHub Desktop.
register_test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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