Answer the question
In order to leave comments, you need to log in
[requests] How to get rid of duplicate cookies?
Library used: requests
Creating a session: Making session = requests.Session()
some requests. I save cookies to a file like this:
pickle.dumps(requests.utils.dict_from_cookiejar(session.cookies))
cookies = requests.utils.cookiejar_from_dict(pickle.loads(DATA_FROM_FILE))
and I set their sessions: session.cookies = cookies
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