网站介绍:文章浏览阅读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 编码
- 链接地址:https://blog.csdn.net/Aacheng123/article/details/121947833
- 链接标题:execjs执行js编码错误的解决方法(UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xad in position 20: illegal )_execjs 编码-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:9876
- 网站标签:execjs 编码