注:scrapy框架默认发送get请求
1. scrapy.FormRequest(url,formdata=data,callback=self.parse_page)
2. scrapy.Request(url=url, cookies=self.cookie, headers=self.headers, method="POST", body=data, callback=self.parse)
注:scrapy框架默认发送get请求
1. scrapy.FormRequest(url,formdata=data,callback=self.parse_page)
2. scrapy.Request(url=url, cookies=self.cookie, headers=self.headers, method="POST", body=data, callback=self.parse)