Answer the question
In order to leave comments, you need to log in
How to add captcha to clipboard in nodejs?
vk gives me an error with a link to captcha
- https://api.vk.com/captcha.php?sid=664437246292&s=1
my code:
in this code I gave rucaptcha a simple link to VK with captcha, but I was given an error ERROR_WRONG_FILE_EXTENSION error means:
The file has an unsupported extension. Valid extensions: jpg, jpeg, gif, png.
and because of this error, I think that I need to somehow copy the image with the captcha and send it not as a link, but from the buffer.
Answer the question
In order to leave comments, you need to log in
In the "antigate" module, there is a built-in method for sending pictures as a buffer. I didn't have any problems with him.
+ It is also necessary to make sure that cookies are saved, since VK most likely binds captcha to a person by cookies. At least other familiar services work that way.
https://www.npmjs.com/package/antigate
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question