Created
April 8, 2021 13:50
-
-
Save ian-kerins/85535b5eada29cbe5595679ef6c2ca44 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def start_requests(self): | |
... | |
… | |
yield scrapy.Request(url=get_url(url), callback=self.parse_keyword_response) | |
def parse_keyword_response(self, response): | |
... | |
… | |
yield scrapy.Request(url=get_url(product_url), callback=self.parse_product_page, meta={'asin': asin}) | |
... | |
… | |
yield scrapy.Request(url=get_url(url), callback=self.parse_keyword_response) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment