Answer the question
In order to leave comments, you need to log in
How to submit such a form via python requests?
<form method="post" action="http://api.captcha.guru/in.php" enctype="multipart/form-data">
<input type="hidden" name="method" value="post">
Ваш ключ:
<input type="text" name="key" value="YOUR_APIKEY">
Файл капчи:
<input type="file" name="file">
<input type="submit" value="Загрузить и получить ID">
</form>
Answer the question
In order to leave comments, you need to log in
import requests
files = {
'method': (None, 'post'),
'key': (None, 'apikey'),
'file': ('file.png', open('file.png', 'rb')),
}
requests.post('http://api.captcha.guru/in.php', files=files)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question