Files
OpenBench/Scripts/upload_net.py
T

17 lines
315 B
Python
Executable File

import requests
URL = 'http://chess.grantnet.us/scripts/'
FILENAME = ''
data = {
'engine' : '',
'name' : '',
'username' : '',
'password' : '',
'action' : 'UPLOAD',
}
with open(FILENAME, 'rb') as file:
r = requests.post(URL, data=data, files={'netfile' : file})
print(r.text)