scrapebadger 0.82.0 → 0.82.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +13 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -9
- package/dist/index.d.ts +13 -9
- package/dist/index.mjs +13 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -9,7 +9,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
9
9
|
var WebSocket__default = /*#__PURE__*/_interopDefault(WebSocket);
|
|
10
10
|
|
|
11
11
|
// src/internal/version.ts
|
|
12
|
-
var SDK_VERSION = "0.82.
|
|
12
|
+
var SDK_VERSION = "0.82.1";
|
|
13
13
|
|
|
14
14
|
// src/internal/exceptions.ts
|
|
15
15
|
var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
|
|
@@ -3497,10 +3497,12 @@ var MapsClient = class {
|
|
|
3497
3497
|
* Get full place detail by `place_id` or `data_id`.
|
|
3498
3498
|
*
|
|
3499
3499
|
* Returns title, address, phone, website, GPS, rating, reviews_count,
|
|
3500
|
-
*
|
|
3501
|
-
* (
|
|
3502
|
-
*
|
|
3503
|
-
*
|
|
3500
|
+
* categories, extensions (amenity groups such as accessibility),
|
|
3501
|
+
* opening hours (`open_state`, today's `hours`, and `operating_hours`
|
|
3502
|
+
* for the coming seven days), `price_level` (Google's price per person,
|
|
3503
|
+
* e.g. "฿2,000+"), popular_times, provider_id, `thumbnail`/`image`, and
|
|
3504
|
+
* up to 20 photo URLs. `service_options` is null: Google no longer
|
|
3505
|
+
* exposes those flags to signed-out clients.
|
|
3504
3506
|
*/
|
|
3505
3507
|
async place(params) {
|
|
3506
3508
|
if (!params.place_id && !params.data_id) {
|
|
@@ -3523,12 +3525,13 @@ var MapsClient = class {
|
|
|
3523
3525
|
});
|
|
3524
3526
|
}
|
|
3525
3527
|
/**
|
|
3526
|
-
* Get photos for a place
|
|
3528
|
+
* Get photos for a place.
|
|
3527
3529
|
*
|
|
3528
|
-
* Returns
|
|
3529
|
-
*
|
|
3530
|
-
*
|
|
3531
|
-
* one
|
|
3530
|
+
* Returns the photos Google exposes to signed-out clients (usually the
|
|
3531
|
+
* first 8 of the gallery) as `thumbnail` and `image` URLs.
|
|
3532
|
+
* `pagination.total_results` is the place's total photo count on Google;
|
|
3533
|
+
* there is one page (`next` is null). To get another size, replace a
|
|
3534
|
+
* URL's `=w..-h..-k-no` suffix and keep its path.
|
|
3532
3535
|
*/
|
|
3533
3536
|
async photos(params) {
|
|
3534
3537
|
return this.client.request("/v1/google/maps/photos", {
|