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.d.cts
CHANGED
|
@@ -1361,6 +1361,7 @@ interface MapsReviewsParams {
|
|
|
1361
1361
|
interface MapsPhotosParams {
|
|
1362
1362
|
data_id: string;
|
|
1363
1363
|
hl?: string;
|
|
1364
|
+
/** Accepted for compatibility; the photos endpoint returns a single page. */
|
|
1364
1365
|
next_page_token?: string;
|
|
1365
1366
|
}
|
|
1366
1367
|
interface MapsPostsParams {
|
|
@@ -2470,10 +2471,12 @@ declare class MapsClient {
|
|
|
2470
2471
|
* Get full place detail by `place_id` or `data_id`.
|
|
2471
2472
|
*
|
|
2472
2473
|
* Returns title, address, phone, website, GPS, rating, reviews_count,
|
|
2473
|
-
*
|
|
2474
|
-
* (
|
|
2475
|
-
*
|
|
2476
|
-
*
|
|
2474
|
+
* categories, extensions (amenity groups such as accessibility),
|
|
2475
|
+
* opening hours (`open_state`, today's `hours`, and `operating_hours`
|
|
2476
|
+
* for the coming seven days), `price_level` (Google's price per person,
|
|
2477
|
+
* e.g. "฿2,000+"), popular_times, provider_id, `thumbnail`/`image`, and
|
|
2478
|
+
* up to 20 photo URLs. `service_options` is null: Google no longer
|
|
2479
|
+
* exposes those flags to signed-out clients.
|
|
2477
2480
|
*/
|
|
2478
2481
|
place(params: MapsPlaceParams): Promise<GoogleResponse>;
|
|
2479
2482
|
/**
|
|
@@ -2485,12 +2488,13 @@ declare class MapsClient {
|
|
|
2485
2488
|
*/
|
|
2486
2489
|
reviews(params: MapsReviewsParams): Promise<GoogleResponse>;
|
|
2487
2490
|
/**
|
|
2488
|
-
* Get photos for a place
|
|
2491
|
+
* Get photos for a place.
|
|
2489
2492
|
*
|
|
2490
|
-
* Returns
|
|
2491
|
-
*
|
|
2492
|
-
*
|
|
2493
|
-
* one
|
|
2493
|
+
* Returns the photos Google exposes to signed-out clients (usually the
|
|
2494
|
+
* first 8 of the gallery) as `thumbnail` and `image` URLs.
|
|
2495
|
+
* `pagination.total_results` is the place's total photo count on Google;
|
|
2496
|
+
* there is one page (`next` is null). To get another size, replace a
|
|
2497
|
+
* URL's `=w..-h..-k-no` suffix and keep its path.
|
|
2494
2498
|
*/
|
|
2495
2499
|
photos(params: MapsPhotosParams): Promise<GoogleResponse>;
|
|
2496
2500
|
/** Get business posts (promotional updates, announcements) for a place. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1361,6 +1361,7 @@ interface MapsReviewsParams {
|
|
|
1361
1361
|
interface MapsPhotosParams {
|
|
1362
1362
|
data_id: string;
|
|
1363
1363
|
hl?: string;
|
|
1364
|
+
/** Accepted for compatibility; the photos endpoint returns a single page. */
|
|
1364
1365
|
next_page_token?: string;
|
|
1365
1366
|
}
|
|
1366
1367
|
interface MapsPostsParams {
|
|
@@ -2470,10 +2471,12 @@ declare class MapsClient {
|
|
|
2470
2471
|
* Get full place detail by `place_id` or `data_id`.
|
|
2471
2472
|
*
|
|
2472
2473
|
* Returns title, address, phone, website, GPS, rating, reviews_count,
|
|
2473
|
-
*
|
|
2474
|
-
* (
|
|
2475
|
-
*
|
|
2476
|
-
*
|
|
2474
|
+
* categories, extensions (amenity groups such as accessibility),
|
|
2475
|
+
* opening hours (`open_state`, today's `hours`, and `operating_hours`
|
|
2476
|
+
* for the coming seven days), `price_level` (Google's price per person,
|
|
2477
|
+
* e.g. "฿2,000+"), popular_times, provider_id, `thumbnail`/`image`, and
|
|
2478
|
+
* up to 20 photo URLs. `service_options` is null: Google no longer
|
|
2479
|
+
* exposes those flags to signed-out clients.
|
|
2477
2480
|
*/
|
|
2478
2481
|
place(params: MapsPlaceParams): Promise<GoogleResponse>;
|
|
2479
2482
|
/**
|
|
@@ -2485,12 +2488,13 @@ declare class MapsClient {
|
|
|
2485
2488
|
*/
|
|
2486
2489
|
reviews(params: MapsReviewsParams): Promise<GoogleResponse>;
|
|
2487
2490
|
/**
|
|
2488
|
-
* Get photos for a place
|
|
2491
|
+
* Get photos for a place.
|
|
2489
2492
|
*
|
|
2490
|
-
* Returns
|
|
2491
|
-
*
|
|
2492
|
-
*
|
|
2493
|
-
* one
|
|
2493
|
+
* Returns the photos Google exposes to signed-out clients (usually the
|
|
2494
|
+
* first 8 of the gallery) as `thumbnail` and `image` URLs.
|
|
2495
|
+
* `pagination.total_results` is the place's total photo count on Google;
|
|
2496
|
+
* there is one page (`next` is null). To get another size, replace a
|
|
2497
|
+
* URL's `=w..-h..-k-no` suffix and keep its path.
|
|
2494
2498
|
*/
|
|
2495
2499
|
photos(params: MapsPhotosParams): Promise<GoogleResponse>;
|
|
2496
2500
|
/** Get business posts (promotional updates, announcements) for a place. */
|
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import WebSocket from 'ws';
|
|
|
3
3
|
import { createHmac, timingSafeEqual } from 'crypto';
|
|
4
4
|
|
|
5
5
|
// src/internal/version.ts
|
|
6
|
-
var SDK_VERSION = "0.82.
|
|
6
|
+
var SDK_VERSION = "0.82.1";
|
|
7
7
|
|
|
8
8
|
// src/internal/exceptions.ts
|
|
9
9
|
var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
|
|
@@ -3491,10 +3491,12 @@ var MapsClient = class {
|
|
|
3491
3491
|
* Get full place detail by `place_id` or `data_id`.
|
|
3492
3492
|
*
|
|
3493
3493
|
* Returns title, address, phone, website, GPS, rating, reviews_count,
|
|
3494
|
-
*
|
|
3495
|
-
* (
|
|
3496
|
-
*
|
|
3497
|
-
*
|
|
3494
|
+
* categories, extensions (amenity groups such as accessibility),
|
|
3495
|
+
* opening hours (`open_state`, today's `hours`, and `operating_hours`
|
|
3496
|
+
* for the coming seven days), `price_level` (Google's price per person,
|
|
3497
|
+
* e.g. "฿2,000+"), popular_times, provider_id, `thumbnail`/`image`, and
|
|
3498
|
+
* up to 20 photo URLs. `service_options` is null: Google no longer
|
|
3499
|
+
* exposes those flags to signed-out clients.
|
|
3498
3500
|
*/
|
|
3499
3501
|
async place(params) {
|
|
3500
3502
|
if (!params.place_id && !params.data_id) {
|
|
@@ -3517,12 +3519,13 @@ var MapsClient = class {
|
|
|
3517
3519
|
});
|
|
3518
3520
|
}
|
|
3519
3521
|
/**
|
|
3520
|
-
* Get photos for a place
|
|
3522
|
+
* Get photos for a place.
|
|
3521
3523
|
*
|
|
3522
|
-
* Returns
|
|
3523
|
-
*
|
|
3524
|
-
*
|
|
3525
|
-
* one
|
|
3524
|
+
* Returns the photos Google exposes to signed-out clients (usually the
|
|
3525
|
+
* first 8 of the gallery) as `thumbnail` and `image` URLs.
|
|
3526
|
+
* `pagination.total_results` is the place's total photo count on Google;
|
|
3527
|
+
* there is one page (`next` is null). To get another size, replace a
|
|
3528
|
+
* URL's `=w..-h..-k-no` suffix and keep its path.
|
|
3526
3529
|
*/
|
|
3527
3530
|
async photos(params) {
|
|
3528
3531
|
return this.client.request("/v1/google/maps/photos", {
|