scrapy shell 调试报错TypeError: module.

xiaoxiao2025-07-15  10

1、使用scrapy shell的时候本人之前安装了ipython,使用shell调式格式从>>>变成了【1】这种带有ipython的格式,结果整齐度看起来比较舒服。

2、现在创建了crawl spider,同时进入到项目目录,使用scrapy shell xxxxxxxx在cmd或者cmder中进行调式的报错TypeError: module.__init__() takes at most 2 arguments (3 g iven),说明了应该是ipython直接运行了pycharm中项目的代码,在某一个项目中的一项显示出了类型错误,后来在cmd或者cmder的创始目录进行scrapy shell xxxxxxxx调式的时候,可以进入其中,可以调式response.css或者response.xpath。

 

转载请注明原文地址: https://www.6miu.com/read-5033135.html

最新回复(0)