One: Introduction to the core components of scrapy 1: Engine (scrapy): responsible for data processing of the entire system process, triggering things (core)
2: Scheduling Scheduler: Put the
One: Introduction to the core components of scrapy 1: Engine (scrapy): responsible for data processing of the entire system process, triggering things (core)
2: Scheduling Scheduler: Put the
A basic process Create a project, the project name is (cmd): firstblood: scrapy startproject firstblood Enter the project directory (cmd): cd :./firstblood Create a crawler file (cmd): scrapy gens
Use the post request in the scrapy component to call
def start_requests(self):
Transfer parameters and then return yield scrapy.FormRequest(url=url,formdata=data,callback=self.parse)
Make a