D
D
David Armyan2020-09-07 17:13:07
Python
David Armyan, 2020-09-07 17:13:07

How to log in to classmates using Python?

I've been scratching my head for a day now, what POST request should I send in order for the session to be counted in Python?

there is a session anter_ses = requests.Session()
and I want to

myprof = anter_ses.get('https://m.ok.ru/dk?st.cmd=userProfile')
soup = bs(myprof.content, "lxml")
print(soup)

get profile page, but authorization fails. Are there no ready-made solutions? Seems like a simple situation.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2020-09-07
@dimonchik2013

sho, postman did not help?
well, at least F12 - Networks look then

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question