P
P
pinkFlash2021-07-01 13:48:45
Python
pinkFlash, 2021-07-01 13:48:45

When sending a post request to api capcha guru servers, I get ERROR_PAGEURL?

When sending a post request to api capcha guru servers, I get ERROR_PAGEURL?

def img_return():
    img =Image.open("E:\py project\яндекс авторег\d.jpg")
    return img

user_key = "d1ab96d3ad0a363d122de03d55a26173"
image1=img_return()
guru_send = {
    'key': user_key,
   
    'file' : image1
}

url = "http://api.captcha.guru/in.php"
s=requests.session()
loging = s.post(url,data=guru_send)

print(loging)
print(loging.text)


here is the apish learn.captcha.guru/#/ru/img_cap_send

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Bl4ckm45k, 2021-07-02
@Bl4ckm45k

url = "http://api.captcha.guru/in.php"

payload={'key': 'd1ab96d3ad0a363d122de03d55a26173'}
files=[
  ('file',('wr-780.jpg',open('/C:/Users/User/Downloads/wr-780.jpg','rb'),'image/jpeg'))
]

response = requests.request("POST", url, data=payload, files=files)

print(response.text)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question