MCPcopy Create free account
hub / github.com/LumingMelody/JS_reverse / then

Function then

cnvd.py:52–60  ·  view source on GitHub ↗

获取第二次请求的cookie

()

Source from the content-addressed store, hash-verified

50
51
52def then():
53 '''获取第二次请求的cookie'''
54 r1 = sess.get(url, headers=headers, verify=False)
55 text = r1.text
56 data = re.search(';go\((.*?)\)</script>', text).group(1)
57 hash = re.search('"ha":"(.*?)",', data).group(1)
58 # get_cookie_2是执行JS,完整代码请下载
59 cookie = get_cookie_2(data, hash).split(';')[0].split('=')
60 sess.cookies[cookie[0]] = cookie[1]
61
62
63def end(page=1):

Callers 1

cnvd.pyFile · 0.85

Calls 1

get_cookie_2Function · 0.85

Tested by

no test coverage detected