Python笔记
Bigworm: python笔记
记录一下平时遇到的问题和解决方案
谷歌浏览器修改请求头
Python调用js(import execjs)
def get_js_function(js_path, func_name, o_token, uid):
with open(js_path, encoding='utf-8') as fp:
js = fp.read()
ctx = execjs.compile(js)
return ctx.call(func_name, o_token, uid)
//js文件位置,默认在同一目录下, js中调用的函数, 两个参数
token = get_js_function('jike.js', 'genToken', o_token, uid)
Js-RSA加密算法
1、先根据对应的加密位置找到 rsa整体加密位置
![RSA加密位置](