execjs执行js编码错误的解决方法(UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xad in position 20: illegal )_execjs 编码-CSDN博客

网站介绍:文章浏览阅读2.2k次,点赞3次,收藏7次。欢迎加入爬虫群:794630151源码:with open('test.js','r',encoding='utf-8') as f: js_text=f.read() # print(js_text) compil=execjs.compile(js_text) cookie=compil.call('sdk_1')print(cookie)报错:Exception in thread Thread-1:Traceback (most recent call _execjs 编码