Skip to content

Commit 902d3ad

Browse files
author
vs
committed
update webhook type
1 parent f08d566 commit 902d3ad

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

outscraper/api_client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def google_maps_search_v1(self, query: Union[list, str], limit: int = 500, extra
238238
def google_maps_search(self, query: Union[list, str], limit: int = 20, drop_duplicates: bool = False,
239239
language: str = 'en', region: str = None, skip: int = 0, coordinates: str = None,
240240
enrichment: list = None, fields: Union[list, str] = None,
241-
async_request: bool = False, ui: bool = None, webhook: bool = None
241+
async_request: bool = False, ui: bool = None, webhook: str = None
242242
) -> Union[list, dict]:
243243
'''
244244
Get Google Maps Data V3 (speed optimized endpoint for real time data)
@@ -380,7 +380,7 @@ def google_maps_reviews_v2(self, query: Union[list, str], reviews_limit: int = 1
380380
def google_maps_reviews(self, query: Union[list, str], reviews_limit: int = 10, limit: int = 1, sort: str = 'most_relevant',
381381
start: int = None, cutoff: int = None, cutoff_rating: int = None, ignore_empty: bool = False, language: str = 'en',
382382
region: str = None, reviews_query: str = None, last_pagination_id: str = None, fields: Union[list, str] = None, async_request: bool = False,
383-
ui: bool = None, webhook: bool = None
383+
ui: bool = None, webhook: str = None
384384
) -> Union[list, dict]:
385385
'''
386386
Get Google Maps Reviews V3 (speed optimized endpoint for real time data)
@@ -556,7 +556,7 @@ def phones_enricher(self, query: Union[list, str], fields: Union[list, str] = No
556556
raise Exception(f'Response status code: {response.status_code}')
557557

558558
def amazon_products(self, query: Union[list, str], limit: int = 24, domain: str = 'amazon.com', postal_code: str = '11201', fields: Union[list, str] = None, async_request: bool = False,
559-
ui: bool = None, webhook: bool = None
559+
ui: bool = None, webhook: str = None
560560
) -> Union[list, dict]:
561561
'''
562562
Amazon Products V2 (speed optimized)
@@ -594,7 +594,7 @@ def amazon_products(self, query: Union[list, str], limit: int = 24, domain: str
594594
return self._handle_response(response, wait_async, async_request)
595595

596596
def amazon_reviews(self, query: Union[list, str], limit: int = 10, sort: str = 'helpful', filter_by_reviewer: str = 'all_reviews',
597-
filter_by_star: str = 'all_stars', domain: str = None, fields: Union[list, str] = None, async_request: bool = False, ui: bool = None, webhook: bool = None
597+
filter_by_star: str = 'all_stars', domain: str = None, fields: Union[list, str] = None, async_request: bool = False, ui: bool = None, webhook: str = None
598598
) -> Union[list, dict]:
599599
'''
600600
Returns reviews from Amazon products.
@@ -634,7 +634,7 @@ def amazon_reviews(self, query: Union[list, str], limit: int = 10, sort: str = '
634634
return self._handle_response(response, wait_async, async_request)
635635

636636
def yelp_search(self, query: Union[list, str], limit: int = 100,
637-
fields: Union[list, str] = None, async_request: bool = False, ui: bool = None, webhook: bool = None
637+
fields: Union[list, str] = None, async_request: bool = False, ui: bool = None, webhook: str = None
638638
) -> Union[list, dict]:
639639
'''
640640
Yelp
@@ -668,7 +668,7 @@ def yelp_search(self, query: Union[list, str], limit: int = 100,
668668
return self._handle_response(response, wait_async, async_request)
669669

670670
def yelp_reviews(self, query: Union[list, str], limit: int = 100, sort: str = 'relevance_desc', cutoff: int = None,
671-
fields: Union[list, str] = None, async_request: bool = False, ui: bool = None, webhook: bool = None
671+
fields: Union[list, str] = None, async_request: bool = False, ui: bool = None, webhook: str = None
672672
) -> Union[list, dict]:
673673
'''
674674
Yelp Reviews
@@ -706,7 +706,7 @@ def yelp_reviews(self, query: Union[list, str], limit: int = 100, sort: str = 'r
706706
return self._handle_response(response, wait_async, async_request)
707707

708708
def tripadvisor_reviews(self, query: Union[list, str], limit: int = 100, cutoff: int = None,
709-
fields: Union[list, str] = None, async_request: bool = False, ui: bool = None, webhook: bool = None
709+
fields: Union[list, str] = None, async_request: bool = False, ui: bool = None, webhook: str = None
710710
) -> Union[list, dict]:
711711
'''
712712
Tripadvisor Reviews
@@ -741,7 +741,7 @@ def tripadvisor_reviews(self, query: Union[list, str], limit: int = 100, cutoff:
741741
return self._handle_response(response, wait_async, async_request)
742742

743743
def apple_store_reviews(self, query: Union[list, str], limit: int = 100, sort: str = 'mosthelpful', cutoff: int = None,
744-
fields: Union[list, str] = None, async_request: bool = False, ui: bool = None, webhook: bool = None
744+
fields: Union[list, str] = None, async_request: bool = False, ui: bool = None, webhook: str = None
745745
) -> list:
746746
'''
747747
Returns reviews from AppStore apps.

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

0 commit comments

Comments
 (0)