Answer the question
In order to leave comments, you need to log in
How to log in to the site using requests?
I have an example of authorization via curl. I can't figure out how to do the same with python requests. curl -u vasia:12345
What to write here:
myrequest = json.loads(x)
r = requests.post(url, json=myrequest)
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