L
L
Lard2014-05-23 18:56:46
Parsing
Lard, 2014-05-23 18:56:46

How to get a captcha generated from a link

Hello.
I need to get and recognize the captcha, which is displayed on the page as the following HTML code: " captcha"
the "src" attribute contains not a direct link to some generated captcha image, but a link to a script that returns different captcha images with each new request. The link "get a new image", which is also present on the page, requests the same script, but with a random number parameter - so even if you make a request to the captcha generator script with the same parameter, for example, "/captcha/? 0.20348027340", anyway, there will be different captcha images every time.
I tried to request a captcha with exactly the same headers as the page itself - but again a different image is returned.
I ask for your help: I ​​need to load the page and get exactly the captcha that is displayed on the page after it is loaded, then submit the form on this page with the recognized captcha.
Thanks in advance for the help of all who answered.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vlad Zhivotnev, 2014-05-24
@inkvizitor68sl

No way. On the server side, there is a script that gives everyone a random picture - this is already a standard function of all captcha scripts.
Open the page, download the image, feed it to the recognizer, then submit the form.

L
Lard, 2014-05-23
@Lard

<img src="/captcha/" id="cap">this is how the HTML of the image looks like

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question