Skip to content

Commit

Permalink
Merge pull request #8 from serpapi/serpapi-pagination-next-link-to-next
Browse files Browse the repository at this point in the history
Replace deprecated `serpapi_pagination.next_link` with `next`
  • Loading branch information
Kenneth Reitz committed Oct 6, 2023
2 parents fbb4011 + 5e3bba3 commit 5bdd865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serpapi/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def next_page_url(self):
serpapi_pagination = self.data.get("serpapi_pagination")

if serpapi_pagination:
return serpapi_pagination.get("next_link")
return serpapi_pagination.get("next")

def next_page(self):
"""Return the next page of results, if any."""
Expand Down

0 comments on commit 5bdd865

Please sign in to comment.