Created
September 29, 2018 10:21
-
-
Save rafikahmed/92f7df4cd8641b1a2299078b6f2c0b74 to your computer and use it in GitHub Desktop.
This file contains 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
next_page= response.xpath("//li[@class='next']/a/@href").extract_first() | |
if next_page is not None: | |
next_page_link= response.urljoin(next_page) | |
yield scrapy.Request(url=next_page_link, callback=self.parse) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment