Skip to content

Fix/yield pages extra request - #42

Merged
adarshdigievo merged 2 commits into
masterfrom
fix/yield-pages-extra-request
Sep 15, 2026
Merged

adarshdigievo merged 2 commits into
masterfrom
fix/yield-pages-extra-request

Conversation

@adarshdigievo

Copy link
Copy Markdown
Member
  • Fixed a bug in SerpResults.yield_pages to ensure it does not request more pages than specified by max_pages. The bug caused two network requests to be sent when max_pages was set to 1.
  • Added a parameterized test in tests/test_pagination.py to verify that pagination stops at the correct number of pages and does not make unnecessary requests.
  • Enhancements to test parameters and examples

@adarshdigievo
adarshdigievo merged commit a632179 into master Sep 15, 2026
19 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant