scrapy 运行报错  does not support field:xxxxxxx

scrapy报错之 ‘’Item does not support field:.......“

究其原因是因为不需要保存字段,所以在item中没有定义field,只是象征性的写了一个title

scrapy报错之 ‘’Item does not support field:.......“

而在spider中用却到了yield item,系统检测出yield出的变量在item中没有提前定义,所以它是拒绝的

正确做法是将需要yield的变量定义在item.py中 

scrapy报错之 ‘’Item does not support field:.......“

然后就可正常运行

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
  • 2021-11-08
  • 2021-12-03
  • 2021-04-17
  • 2021-10-12
  • 2022-01-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
  • 2022-12-23
  • 2021-10-30
  • 2022-12-23
  • 2021-09-03
相关资源
相似解决方案