N
N
noob2222020-08-21 01:52:49
Python
noob222, 2020-08-21 01:52:49

How to connect to a proxy through Python to VK?

I'm trying to log in through a proxy VK but it doesn't work. Can you tell me what's wrong

proxy = {'http': 'http://' + ip,
             'https': 'https://' + ip,
             }
header = {'User-Agent': random.choice(headers)}
session = requests.Session()
session.proxies = proxy
vk_session = vk_api.VkApi(token=AccountToken)
vk_session.http.proxies = proxy

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2020-08-21
@dimonchik2013

bro, why?
there token

P
Puma Thailand, 2020-08-21
@opium

At least no port specified

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question