Container commited on
Commit
1d54d21
·
verified ·
1 Parent(s): cfb1afd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -87,10 +87,10 @@ def chrome(url:str=None,wait:int=5,header:str=None,cookie_string:str=None,cookie
87
  del driver.requests
88
 
89
  # 试着输出此时的浏览器数据,看是否清理干净
90
- print(driver.get_cookies())
91
- print(driver.execute_script("return window.sessionStorage;"))
92
- print(driver.execute_script("return window.localStorage;"))
93
- print(len(driver.requests))
94
 
95
  # 对浏览器追加我们传递进来的cookie(允许明文字符串,或者经过base64编码的json,获取json使用谷歌浏览器的Cookie-Editor插件导出json即可)
96
  if type(cookie_string) == str:
 
87
  del driver.requests
88
 
89
  # 试着输出此时的浏览器数据,看是否清理干净
90
+ print(f'初始的cookie:{len(driver.get_cookies())}')
91
+ print(f'初始的sessionStorage:{driver.execute_script("return window.sessionStorage.length;")}')
92
+ print(f'初始的localStorage:{driver.execute_script("return window.localStorage.length;")}')
93
+ print(f'初始的network:{len(driver.requests)}')
94
 
95
  # 对浏览器追加我们传递进来的cookie(允许明文字符串,或者经过base64编码的json,获取json使用谷歌浏览器的Cookie-Editor插件导出json即可)
96
  if type(cookie_string) == str: