You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it is not possible to set a timeout threshold on Instantiation of a GoogleSearch client and instead it defaults to a hard-coded value of 60,000.
The text was updated successfully, but these errors were encountered:
params= {
"engine": "google_maps",
"q": q,
"type": "search",
"ll": "@40.7455096,-74.0083012,14z",
"api_key": os.getenv("SERPAPI_KEY"),
}
# Timeout is set to 1 ms to illustrate that it works.# In a real project, some searches can take up to 450 seconds on the SerpApi side:# Reason: parameters complexity and other factors on target websites' side.# Example: SerpApiClient(params, timeout=90)search=SerpApiClient(params, timeout=1)
Can you please clarify if the timeout units are seconds or milliseconds?
Since in the underlying implementation the timeout is passed to the get method of requests and the docs mention it is in seconds.
Currently it is not possible to set a timeout threshold on Instantiation of a GoogleSearch client and instead it defaults to a hard-coded value of 60,000.
The text was updated successfully, but these errors were encountered: