def parse(self, response): print(response.text)没有数据输出
你定义的类,用的时候首先要实例化下,然后再调类中的方法
你定义的类,用的时候首先要实例化下,然后再调类中的方法。参考:https://www.cnblogs.com/doumingyi/p/12469120.html