回调函数callback不执行

大概率是被过滤了
两种方法:

  • allowed_domains 中加入目标url
  • scrapy.Request() 函数中将参数 dont_filter=True 设置为 True

相关文章: