Nv7-GitHub / googlesearch

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

#34 Update logic for no result #50

Closed InscribeDeeper closed 1 year ago

InscribeDeeper commented 1 year ago

To avoid an infinite loop if there is no result on the first time search

InscribeDeeper commented 1 year ago

Seems good! This doesn't get affected by yield, right?

Yeah. If it goes to yield, the start index will definitely be larger than 0. I tested with this query: search("site:https://www.rockwellautomation.com+rockwell")

Nv7-GitHub commented 1 year ago

Ok, I'll include this in the next release!