I
I
Ilkhomjon Matazimov2020-03-08 09:51:08
JavaScript
Ilkhomjon Matazimov, 2020-03-08 09:51:08

I have a code where I add users as friends. But there after a certain time there is a captcha. How to handle it?

I have a code where I add VKontakte users as friends at intervals. But after a certain time, the captcha comes out. How can I insert it into this code: https://pastiebin.com/5e6494d40dbf5
So that after the captcha is released, the captcha is shown, and where it can be entered and sent to the VK server.
But, so that when the captcha exits, the adding to friends cycle stops, waiting for the captcha to be entered and sent to the server. If the captcha was entered incorrectly, then so that the cycle does not continue, but so that the captcha comes out again with a field for entering the captcha.

Help me please. Do not hit (, I'm a beginner ((

Here is the error log with captcha:5e6495b765804411328548.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2020-03-08
@opium

Do another loop to solve the captcha inside

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question