Nv7-GitHub / googlesearch

A Python library for scraping the Google search engine.
https://pypi.org/project/googlesearch-python/
MIT License
430 stars 110 forks source link

Update __init__.py #75

Closed AdvancedAI-NL closed 6 days ago

AdvancedAI-NL commented 4 months ago

I wanted to fix the problem for when the SERPs generated were less than the num_results specified and then the code got stuck in an infinite loop. With this new code, that shouldn't happen anymore and during my tests the code was able to keep on working as intended.

AdvancedAI-NL commented 4 months ago

Thank you for the PR and fixing this bug! Have some small changes but overall it looks good.

You're welcome! I made a new commit fixing the problems you pointed out. Thank you for the useful code, take care!

mumba17 commented 3 months ago

I forked and merged this branch and that fixed my issues! Could you merge this?