Skip to content

Commit

Permalink
fix: move pagination for outside table count
Browse files Browse the repository at this point in the history
  • Loading branch information
victorfernandesraton authored and ogecece committed Sep 25, 2024
1 parent cc858e8 commit a02e0b3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ def parse(self, response, page=1):
power="executive_legislative",
)

next_page_url = response.css("a.page-link[rel='next']::attr(href)").get()
if next_page_url:
yield scrapy.Request(url=next_page_url)
next_page_url = response.css("a.page-link[rel='next']::attr(href)").get()
if next_page_url:
yield scrapy.Request(url=next_page_url)

0 comments on commit a02e0b3

Please sign in to comment.