O
O
olezhenka2017-03-29 22:27:33
JavaScript
olezhenka, 2017-03-29 22:27:33

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.
d0dc7c2b5bef49a98f876a0743fd909d.PNG

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BestJS, 2017-03-30
@BestJS

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 question

Ask a Question

731 491 924 answers to any question