execjs执行js编码错误的解决方法(UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xad in position 20: illegal )
欢迎加入爬虫群: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
原创
2021-12-15 11:08:20 ·
2461 阅读 ·
1 评论