JAVASCRPIT文件的python执行

query = 'Hello spider'
        with open( 'baidutrans.js' , 'r' , encoding='utf-8' ) as f:
            ctx = execjs.compile( f.read() )
        sign = ctx.call( 'e' , query )
原文地址:https://www.cnblogs.com/klausage/p/11755508.html