首页 > 编程语言 >Python爬虫 AttributeError: 'NoneType' object has no attribute 'replace'

Python爬虫 AttributeError: 'NoneType' object has no attribute 'replace'

时间:2022-08-26 10:24:01浏览次数:125  
标签:encoding Python attribute no 爬虫 replace

在爬虫时执行js代码报错

node = execjs.get()
ctx = node.compile(js_code).call('webInstace.shell', data)

 

 点击1处进入subprocess.py文件

 

 

 把encoding=None 改成encoding=‘utf-8’

标签:encoding,Python,attribute,no,爬虫,replace
From: https://www.cnblogs.com/yusilu-2653144/p/16626661.html

相关文章