pyspider all求解决什么问题不能正常运行

img

                                                                                                                                                       口
icrosoftWincows 版本10.0.22000.71
  MicrosoftCorporation。保留所有权利
:Users pvsnider all
          C:Users File AppData Local Programs Python  Python37 Scripts pyspider scriptpy,Line1
yntaxError:Non-UTF-8 code starting with in file C:users xbf AppData Local thon Python37 Seripts
yspider-script.py on line l,butno encoding declared:see http://python,org/dev/peps/pep-0263 for details
C:Users

报错是指在源码中编码没有声明,可以试试在pyspider-script.py的首行添加一行注释该文档的编码格式,# coding:utf-8,参考:
有效解决“SyntaxError: Non-UTF-8 code starting with” 语法错误 - 天马行宇 - 博客园 今天在使用scrapy采集数据的时候,有个需求是将获取到的response响应保存成html文件,但是在文件写入的过程中,发现根据网页返回的内容不同,文件写入有可能会报这个错误: 这个问题需要在py文 https://www.cnblogs.com/yuanyongqiang/p/11350187.html