How to get resume list and resume details at the same time by scrapy

to crawl the website: https://hr.tencent.com/positi.

clipboard.png

:

clipboard.png

how to write the middle code? no idea, solve

Mar.18,2021

parse is used to parse list pages.
in the parse method, use yield scrapy.Request (url,callback=self.parse) to queue a new page of URL.

now you need to parse the details page, which is different from the list page, so you need to define a second parsing function to parse the details page.

def parse_detail(self,response):
    pass
    -sharp parse
    -sharp yield item

get the link to each position in the list, and then use this callback function to parse.
if only all the data are obtained in this method, the information on the details page must be richer than that in the list.

Menu