Skip to content

Fix/yield pages extra request - #42

Open
adarshdigievo wants to merge 2 commits into
masterfrom
fix/yield-pages-extra-request
Open

Fix/yield pages extra request#42
adarshdigievo wants to merge 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

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