Scrapy FormRequest sending JSON

前端 未结 3 1237
既然无缘
既然无缘 2020-12-09 12:09

I am trying to create a FormRequest that can send content-type:application/json.

Here is what I try:

yield FormRequest(\"abc.someurl.com\", formdata=         


        
3条回答
  •  长情又很酷
    2020-12-09 12:19

    You could just use the below snippet for getting response:

    res =requests.post(url, json=data) print(res.text)

提交回复
热议问题