I want to work with vk_api on python. When you try to connect to your VKontakte page, there is a long loading in the console, then it crashes:

[WinError 10060] Попытка установить соединение была безуспешной, т.к. от другого компьютера за требуемое время не получен нужный отклик, или было разорвано уже установленное соединение из-за неверного отклика уже подключенного компьютера 

This is one part of the whole error. Here is the code itself:

 import vk_api vk_session = vk_api.VkApi('тут логин', 'тут пароль') vk_session.auth() vk = vk_session.get_api() vk.wall.post(message='Hello world!') 

The code starts a long load at the moment "vk_session.auth ()".

  • Did you register the application in VC? - ThisMan 5:19 pm

1 answer 1

Perhaps this is due to the fact that you live in a country in which this social network is prohibited. To do this, use Proxy / VPN / (Tor).

  • No, it works differently, now you need to transfer a token instead of an input, I did it, and it even turned out on my page to post a post using a bot. I did not understand what was the mistake .. - Mark Minerov