B
B
BotaniQ_Q2018-01-27 02:18:58
VPN
BotaniQ_Q, 2018-01-27 02:18:58

vk library with vpn or tor?

I want to write a bot for the vk.com group, since I'm in Ukraine now, and the site is blocked here, I connect to vk via tor. I am working with the vk library and that is, I cannot even do such an action

import vk
session = vk.Session()
vk_api = vk.API(session)
vk_api.users.get(user_id=1)

How can I make requests go through tor?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
key don, 2018-01-28
@keydon2

I don’t know how your lib works (I’m not strong in python)
and I won’t say about Tor,
but with vpn you raise openvpn to any vds in Russia with access to the Internet, connect and work as if openvpn is your router (i.e. transparent to you) . like it should work in any case
. In general, bans are the worst thing that could be done with the Internet. I hope your analogue of Roskompozor will be in the same grave with ours.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question