response 200 python

Solutions on MaxInterview for response 200 python by the best coders in the world

showing results for - "response 200 python"
Rafael
05 May 2019
1import requests
2import time
3#base64 image encoding
4with open("funcaptcha1.png", "rb") as f:
5    data = f.read()
6    filekodovany = data.encode("base64")
7    #captcha uploader
8udajepost = {'apikey':'APIKEY','action':'usercaptchaupload','file-upload-01':filekodovany,'source':'pythonator','rotate':'1','angle':'40','base64':'1'}
9headers = {'Content-Type':'multipart/form-data'}
10r = requests.post('https://www.9kw.eu/index.cgi', data = udajepost)
11print(r)