调用 node 执行 js,可指定编码
Project description
介绍
调用 node 执行 js ,可指定编码格式
安装
pip install -U gexecjs
示例
# run_js = RunJs(filepath='test.js')
run_js = RunJs(content='''
function getCookie(){
return arguments
}
''')
result = run_js.run('getCookie', 'Gk')
print(result)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gexecjs-0.0.1.tar.gz
(2.7 kB
view hashes)