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 )
query = 'Hello spider' with open( 'baidutrans.js' , 'r' , encoding='utf-8' ) as f: ctx = execjs.compile( f.read() ) sign = ctx.call( 'e' , query )