googlesearch icon indicating copy to clipboard operation
googlesearch copied to clipboard

search() gets stuck on infinite "while loop" if the search term has zero results

Open Tomz295 opened this issue 2 years ago • 1 comments

https://github.com/Nv7-GitHub/googlesearch/blob/be88ef64de65529e5d42f14b4f2cd3f675ae4adf/googlesearch/init.py#L42-L62

Code cannot exit the while loop if the value of start never goes up, and the value of start only ever goes up if a valid result is yielded. For search terms that have zero results, this results on the code getting stuck trying to find something forever.

Tomz295 avatar Jun 16 '22 16:06 Tomz295

Any chance this can get merged in and released?

binhex avatar May 23 '23 14:05 binhex