Skip to content

Commit 07e02e3

Browse files
author
vs
committed
add last_pagination_id for GM reviews
1 parent 542be47 commit 07e02e3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

outscraper/api_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,8 @@ def google_maps_reviews_v2(self, query: Union[list, str], reviews_limit: int = 1
373373
raise Exception(f'Response status code: {response.status_code}')
374374

375375
def google_maps_reviews(self, query: Union[list, str], reviews_limit: int = 10, limit: int = 1, sort: str = 'most_relevant',
376-
skip: int = 0, start: int = None, cutoff: int = None, cutoff_rating: int = None, ignore_empty: bool = False,
377-
language: str = 'en', region: str = None, reviews_query: str = None, fields: Union[list, str] = None, async_request: bool = False,
376+
start: int = None, cutoff: int = None, cutoff_rating: int = None, ignore_empty: bool = False, language: str = 'en',
377+
region: str = None, reviews_query: str = None, last_pagination_id: str = None, fields: Union[list, str] = None, async_request: bool = False,
378378
ui: bool = None, webhook: bool = None
379379
) -> Union[list, dict]:
380380
'''
@@ -389,11 +389,11 @@ def google_maps_reviews(self, query: Union[list, str], reviews_limit: int = 10,
389389
reviews_limit (int): parameter specifies the limit of reviews to extract from one place.
390390
limit (str): parameter specifies the limit of places to take from one query search.
391391
sort (str): parameter specifies one of the sorting types. Available values: "most_relevant", "newest", "highest_rating", "lowest_rating".
392-
skip (int): parameter specifies the number of items to skip. It's commonly used in pagination.
393392
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.
394393
cutoff (int): parameter specifies the maximum timestamp value for reviews (oldest review). Using the cutoff parameter overwrites sort parameter to newest.
395394
cutoff_rating (int): parameter specifies the maximum (for lowest_rating sorting) or minimum (for highest_rating sorting) rating for reviews. Using the cutoffRating requires sorting to be set to "lowest_rating" or "highest_rating".
396395
ignore_empty (bool): parameter specifies whether to ignore reviews without text or not.
396+
last_pagination_id (str): parameter specifies the review_pagination_id of the last item. It's commonly used in pagination.
397397
reviews_query (str): parameter specifies the query to search among the reviews (e.g. wow, amazing, horrible place).
398398
coordinates (str): parameter defines the coordinates of the location where you want your query to be applied. It has to be constructed in the next sequence: "@" + "latitude" + "," + "longitude" + "," + "zoom" (e.g. "@41.3954381,2.1628662,15.1z").
399399
language (str): parameter specifies the language to use for Google. Available values: "en", "de", "es", "es-419", "fr", "hr", "it", "nl", "pl", "pt-BR", "pt-PT", "vi", "tr", "ru", "ar", "th", "ko", "zh-CN", "zh-TW", "ja", "ach", "af", "ak", "ig", "az", "ban", "ceb", "xx-bork", "bs", "br", "ca", "cs", "sn", "co", "cy", "da", "yo", "et", "xx-elmer", "eo", "eu", "ee", "tl", "fil", "fo", "fy", "gaa", "ga", "gd", "gl", "gn", "xx-hacker", "ht", "ha", "haw", "bem", "rn", "id", "ia", "xh", "zu", "is", "jw", "rw", "sw", "tlh", "kg", "mfe", "kri", "la", "lv", "to", "lt", "ln", "loz", "lua", "lg", "hu", "mg", "mt", "mi", "ms", "pcm", "no", "nso", "ny", "nn", "uz", "oc", "om", "xx-pirate", "ro", "rm", "qu", "nyn", "crs", "sq", "sk", "sl", "so", "st", "sr-ME", "sr-Latn", "su", "fi", "sv", "tn", "tum", "tk", "tw", "wo", "el", "be", "bg", "ky", "kk", "mk", "mn", "sr", "tt", "tg", "uk", "ka", "hy", "yi", "iw", "ug", "ur", "ps", "sd", "fa", "ckb", "ti", "am", "ne", "mr", "hi", "bn", "pa", "gu", "or", "ta", "te", "kn", "ml", "si", "lo", "my", "km", "chr".
@@ -415,10 +415,10 @@ def google_maps_reviews(self, query: Union[list, str], reviews_limit: int = 10,
415415
'reviewsLimit': reviews_limit,
416416
'limit': limit,
417417
'sort': sort,
418-
'skip': skip,
419418
'start': start,
420419
'cutoff': cutoff,
421420
'reviewsQuery': reviews_query,
421+
'lastPaginationId': last_pagination_id,
422422
'cutoffRating': cutoff_rating,
423423
'ignoreEmpty': ignore_empty,
424424
'language': language,

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='4.0.2',
11+
version='4.1.0',
1212
description='Python bindings for the Outscraper API',
1313
long_description=readme(),
1414
classifiers = ['Programming Language :: Python',

0 commit comments

Comments
 (0)