17 lines
315 B
Python
17 lines
315 B
Python
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) |