requests没问题,移植到scrapy中post请求报错
试了很多方法,例如
scrapy.Request, scrapy.http.Request, scrapy.FormRequest 都不成功
最终成功拿到数据,方法如下
使用 scrapy.Request 并且去掉headers中的Content-Length
requests没问题,移植到scrapy中post请求报错
试了很多方法,例如
scrapy.Request, scrapy.http.Request, scrapy.FormRequest 都不成功
最终成功拿到数据,方法如下
使用 scrapy.Request 并且去掉headers中的Content-Length