Guest User

Untitled

a guest
Feb 15th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. next_page = response.xpath("//div//div[4]//ul[1]//li[10]//a[1]//@href").extract_first()
  2. if next_page is not None:
  3. yield scrapy.Request(url = response.urljoin(next_page), callback=self.parse)
Add Comment
Please, Sign In to add comment