We can use scrapy.FormRequest
send post request with parameters.
import scrapy
class ExampleSpider(scrapy):
name = 'ExampleSpider'
allowed_domains = ['example.com']
def start_requests(self):
params = {
'parameter1': 'value1',
'parameter2': 'value2',
}
yield scrapy.FormRequest('api.example.com', callback=self.parse,
method='POST', formdata=params)
def parse(self, response):
pass
Hello, how does the incoming post information from the outside,