Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question