Container commited on
Commit
fb23ce7
·
verified ·
1 Parent(s): ccc5019

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -16,9 +16,7 @@ def convert_cookies_to_dict(cookies):
16
  def main():
17
  target_url = 'https://test5.container-z.art/test26'
18
  wait_time = 10
19
- header_list = '{"user-agent": "New York"}'
20
- mode = "get"
21
- cookies_string = "_zap=386b2646-cd4f-48b0-831c-0f4e0fcb84d; d_c0=ATBVpddW2hePTs-uWJUqnuikOgCLTtzDaQ=|1702569488; _xsrf=9Exea3EejXTsAZewjRCns4TPklsjdCpV; __zse_ck=001_xCDDL0hUsjpAaMgmQE7pCfeU+zXi0/T+YTGbyY=OkkWy54lHQjmO1If3BOBMUzDjeY=d26WyAD5j0BG=m7jR7RrpRqv2ImjXDfJPzUEzARb4/TImweWRybZ5aGbVke4B; BEC=9f6899d2c0337126a73fd6e01ed7c740; gdxidpyhxdE=tfBS35OO12TxVYkb6i%5Ce7mQekmAMzv2e1Ah%5CGS4h%5CwU7xS47p9%2Fd4T%5CNEmx7s%2Bu%2Fr8mkLktUMVIPQ404Z1OxrejYyRQ3aSgLL7CBsT2nRhTXpzWaxqr7KyuaHSCMZjsK6OBaCM5GsMTSor4baQvmzWfo5SZqccCgWZTrn4Ii2tgDNH0w%3A1718799277544"
22
 
23
  header_array = json.loads(header_list)
24
  cookies = convert_cookies_to_dict(cookies_string)
@@ -29,8 +27,6 @@ def main():
29
  # options.add_argument(f'{key}="{value}"')
30
 
31
  driver = webdriver.Chrome(options=options)
32
- # print(cookies)
33
- # driver.add_cookie(cookies)
34
 
35
  driver.header_overrides = header_array
36
 
 
16
  def main():
17
  target_url = 'https://test5.container-z.art/test26'
18
  wait_time = 10
19
+ header_list = '{"user-agent": "New York","cookie": "_zap=386b2646-cd4f-48b0-831c-0f4e0fcb84d; d_c0=ATBVpddW2hePTs-uWJUqnuikOgCLTtzDaQ=|1702569488; _xsrf=9Exea3EejXTsAZewjRCns4TPklsjdCpV; __zse_ck=001_xCDDL0hUsjpAaMgmQE7pCfeU+zXi0/T+YTGbyY=OkkWy54lHQjmO1If3BOBMUzDjeY=d26WyAD5j0BG=m7jR7RrpRqv2ImjXDfJPzUEzARb4/TImweWRybZ5aGbVke4B; BEC=9f6899d2c0337126a73fd6e01ed7c740; gdxidpyhxdE=tfBS35OO12TxVYkb6i%5Ce7mQekmAMzv2e1Ah%5CGS4h%5CwU7xS47p9%2Fd4T%5CNEmx7s%2Bu%2Fr8mkLktUMVIPQ404Z1OxrejYyRQ3aSgLL7CBsT2nRhTXpzWaxqr7KyuaHSCMZjsK6OBaCM5GsMTSor4baQvmzWfo5SZqccCgWZTrn4Ii2tgDNH0w%3A1718799277544"}'
 
 
20
 
21
  header_array = json.loads(header_list)
22
  cookies = convert_cookies_to_dict(cookies_string)
 
27
  # options.add_argument(f'{key}="{value}"')
28
 
29
  driver = webdriver.Chrome(options=options)
 
 
30
 
31
  driver.header_overrides = header_array
32