Skip to content

Commit c531f9a

Browse files
author
vs
committed
wait_async for reviews_limit = 0
1 parent b2b5171 commit c531f9a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

outscraper/api_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ def google_maps_reviews(self, query: Union[list, str], reviews_limit: int = 10,
389389
390390
Parameters:
391391
query (list | str): parameter defines the query you want to search. You can use anything that you would use on a regular Google Maps site. Additionally, you can use google_id, place_id or urls to Google Maps places. Using a lists allows multiple queries (up to 50) to be sent in one request and save on network latency time.
392-
reviews_limit (int): parameter specifies the limit of reviews to extract from one place.
392+
reviews_limit (int): parameter specifies the limit of reviews to extract from one place (0 - unlimited).
393393
limit (str): parameter specifies the limit of places to take from one query search.
394394
sort (str): parameter specifies one of the sorting types. Available values: "most_relevant", "newest", "highest_rating", "lowest_rating".
395395
start (int): parameter specifies the start timestamp value for reviews (newest review). The current timestamp is used when the value is not provided. Using the start parameter overwrites sort parameter to newest.
@@ -411,7 +411,7 @@ def google_maps_reviews(self, query: Union[list, str], reviews_limit: int = 10,
411411
See: https://app.outscraper.com/api-docs#tag/Google/paths/~1maps~1reviews-v3/get
412412
'''
413413
queries = as_list(query)
414-
wait_async = async_request or reviews_limit > 499 or len(queries) > 10
414+
wait_async = async_request or reviews_limit > 499 or reviews_limit == 0 or len(queries) > 10
415415

416416
response = requests.get(f'{self._api_url}/maps/reviews-v3', params={
417417
'query': queries,

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def readme():
88

99
setup(
1010
name='outscraper',
11-
version='5.0.0',
11+
version='5.0.1',
1212
description='Python bindings for the Outscraper API',
1313
long_description=readme(),
1414
classifiers = ['Programming Language :: Python',

0 commit comments

Comments
 (0)