Answer the question
In order to leave comments, you need to log in
How to log in using Python on a site with authorization through VK?
Good afternoon. I can not log in to mrandom.com (not advertising)
By pressing the "Login" button, mrandom.com/auth/vk opens (or mrandom.com/auth/vk/callback , I did not figure it out.)
After entering the data, the form is sent and in Network can see it.
Request URL: https://login.vk.com/?act=login&soft=1
Request Method: POST
And this is from below:
I took this code following the example from the Toaster, after parsing, you can understand that I am not authorized on the page.
import requests
s = requests.Session()
data = {"email":"[email protected]", "pass":"YYYYYYYYY"}
url = "http://mrandom.com/auth/vk"
r = s.post(url, data=data)
s.cookies
response = requests.get('http://mrandom.com/contests/my')
print('Result')
print(response.content)
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