scrapy发送json数据不能用FormRequest,而是要用Request
具体代码:
yield Request(url, method="POST", body=json.dumps(data), headers={'Content-Type': 'application/json'},callback=self.parse_json)
原博客链接:
https://blog.csdn.net/csdn_am/article/details/79729490
scrapy发送json数据不能用FormRequest,而是要用Request
具体代码:
yield Request(url, method="POST", body=json.dumps(data), headers={'Content-Type': 'application/json'},callback=self.parse_json)
原博客链接:
https://blog.csdn.net/csdn_am/article/details/79729490