Answer the question
In order to leave comments, you need to log in
How to login to website using python?
how to log in to vk
through requests ?
url = 'https://vk.com/'
login = '******'
password = '*******'
s = requests.Session()
r = s.get(url, auth=(login, password))
print(r.text)
Answer the question
In order to leave comments, you need to log in
So vk does not support HTTP Auth, what's the point of passing such parameters? Of course, the main page of the site will be returned.
You can see how authorization is arranged in the same vk_api
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question