mirror of https://gitlab.com/bashrc2/epicyon
Don't clear
parent
f8efb37c6e
commit
a1cbc6e9c3
|
@ -38,7 +38,7 @@ def getJson(session,url: str,headers: {},params: {}, \
|
||||||
#"Mozilla/5.0 (Linux; Android 5.1.1; Nexus 5)"
|
#"Mozilla/5.0 (Linux; Android 5.1.1; Nexus 5)"
|
||||||
if not session:
|
if not session:
|
||||||
print('WARN: no session specified for getJson')
|
print('WARN: no session specified for getJson')
|
||||||
session.cookies.clear()
|
#session.cookies.clear()
|
||||||
try:
|
try:
|
||||||
result=session.get(url, headers=sessionHeaders, params=sessionParams)
|
result=session.get(url, headers=sessionHeaders, params=sessionParams)
|
||||||
return result.json()
|
return result.json()
|
||||||
|
|
Loading…
Reference in New Issue