Posted 2021-04-20Scrapy deepcopyWhy write this postThe code: 123456789101112def parse_category(self, response): flower = FlowerItem() root = response.css("div.zhiwuImg") for li in root.css("li"): flower["name"] = li.css("img").attrib['title'] yield scrapy.Request(url=self.webroot+li.css("a:first-child::attr(href)").get(), meta={"item":flower}, callback=self.parse_detail)def parse_detail(self, response): flower = response.meta['item'] root = response.css("div.contentDiv") flower['firstletter'] = root.css("blockquote p::text").get() yield flowerRead more