(data, hash)
| 69 | |
| 70 | |
| 71 | def get_cookie_2(data, hash): |
| 72 | node = execjs.get() |
| 73 | path = f'./js_signature/t_{hash}.js' |
| 74 | with open(path, 'r', encoding='utf-8') as f: |
| 75 | ctx = node.compile(f.read()) |
| 76 | funcName = f'go({data})' |
| 77 | pwd = ctx.eval(funcName) |
| 78 | return pwd |
| 79 | |
| 80 | |
| 81 | if __name__ == '__main__': |