Answer the question
In order to leave comments, you need to log in
Python. How to copy cookies from the browser?
Good afternoon. I want to copy cookies from the browser for further use of the requests library. Found the browser_cookie module, with the code:
import browsercookie
cj = browsercookie.chrome()
session = requests.Session()
goToLog = session.post(url_form, headers=header, cookies=cj)
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