From a1cbc6e9c34d735c8e3da05090ef403ec62387c1 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 18 Aug 2019 13:52:39 +0100 Subject: [PATCH] Don't clear --- session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/session.py b/session.py index dd186f92..4ae4491c 100644 --- a/session.py +++ b/session.py @@ -38,7 +38,7 @@ def getJson(session,url: str,headers: {},params: {}, \ #"Mozilla/5.0 (Linux; Android 5.1.1; Nexus 5)" if not session: print('WARN: no session specified for getJson') - session.cookies.clear() + #session.cookies.clear() try: result=session.get(url, headers=sessionHeaders, params=sessionParams) return result.json()