scrapebadger 0.72.0 → 0.74.0
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/README.md +3 -0
- package/dist/index.cjs +38 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -2
- package/dist/index.d.ts +29 -2
- package/dist/index.mjs +38 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -4547,6 +4547,8 @@ declare class Autoscout24Client {
|
|
|
4547
4547
|
constructor(client: BaseClient);
|
|
4548
4548
|
/** List search filters. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4549
4549
|
listSearchFilters(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
4550
|
+
/** Get listing. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4551
|
+
getListing(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
4550
4552
|
/** List markets. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4551
4553
|
listMarkets(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
4552
4554
|
/** Search vehicles. Generated from the OpenAPI spec; returns the raw response object. */
|
|
@@ -13604,6 +13606,20 @@ declare class YandexClient {
|
|
|
13604
13606
|
constructor(client: BaseClient);
|
|
13605
13607
|
}
|
|
13606
13608
|
|
|
13609
|
+
/**
|
|
13610
|
+
* Yelp API client. // --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
13611
|
+
*/
|
|
13612
|
+
|
|
13613
|
+
/** Client for all Yelp API operations. (Generated from the OpenAPI spec.) */
|
|
13614
|
+
declare class YelpClient {
|
|
13615
|
+
private readonly client;
|
|
13616
|
+
constructor(client: BaseClient);
|
|
13617
|
+
/** List markets. Generated from the OpenAPI spec; returns the raw response object. */
|
|
13618
|
+
listMarkets(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
13619
|
+
/** Search businesses. Generated from the OpenAPI spec; returns the raw response object. */
|
|
13620
|
+
searchBusinesses(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
13621
|
+
}
|
|
13622
|
+
|
|
13607
13623
|
/**
|
|
13608
13624
|
* TypeScript types for YouTube API responses.
|
|
13609
13625
|
*
|
|
@@ -20163,13 +20179,15 @@ declare class GeminiClient {
|
|
|
20163
20179
|
}
|
|
20164
20180
|
|
|
20165
20181
|
/**
|
|
20166
|
-
*
|
|
20182
|
+
* Public GitHub compatibility adapter with repository detail.
|
|
20167
20183
|
*/
|
|
20168
20184
|
|
|
20169
|
-
/**
|
|
20185
|
+
/** Public profile operations and repository detail. */
|
|
20170
20186
|
declare class GithubClient {
|
|
20171
20187
|
private readonly client;
|
|
20172
20188
|
constructor(client: BaseClient);
|
|
20189
|
+
/** Get public default-branch repository detail without query options. */
|
|
20190
|
+
getRepository(owner: string, repo: string): Promise<Record<string, unknown>>;
|
|
20173
20191
|
/** Get profile. Generated from the OpenAPI spec; returns the raw response object. */
|
|
20174
20192
|
getProfile(username: string, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
20175
20193
|
}
|
|
@@ -20214,6 +20232,13 @@ declare class GithubClient {
|
|
|
20214
20232
|
*/
|
|
20215
20233
|
declare class ScrapeBadger {
|
|
20216
20234
|
private readonly baseClient;
|
|
20235
|
+
/** Live endpoint discovery. Hidden endpoints are omitted; statuses update without an SDK release. */
|
|
20236
|
+
endpoints(): Promise<Array<{
|
|
20237
|
+
method: string;
|
|
20238
|
+
path: string;
|
|
20239
|
+
api: string;
|
|
20240
|
+
status: "active" | "temporarily_unavailable" | "deprecated";
|
|
20241
|
+
}>>;
|
|
20217
20242
|
/** Twitter API client */
|
|
20218
20243
|
readonly twitter: TwitterClient;
|
|
20219
20244
|
/** Web scraping API client */
|
|
@@ -20290,6 +20315,8 @@ declare class ScrapeBadger {
|
|
|
20290
20315
|
readonly yahoo: YahooClient;
|
|
20291
20316
|
/** Yandex scraper API client — web search, image search, reverse-image (CBIR), markets (tr/com/ru/by/kz/uz) */
|
|
20292
20317
|
readonly yandex: YandexClient;
|
|
20318
|
+
/** Yelp API client. (Generated from the OpenAPI spec.) */
|
|
20319
|
+
readonly yelp: YelpClient;
|
|
20293
20320
|
/** YouTube scraper API client — 39 endpoints */
|
|
20294
20321
|
readonly youtube: YoutubeClient;
|
|
20295
20322
|
/** Realtor scraper API client — 4 endpoints across 2 markets (us, ca) */
|
package/dist/index.d.ts
CHANGED
|
@@ -4547,6 +4547,8 @@ declare class Autoscout24Client {
|
|
|
4547
4547
|
constructor(client: BaseClient);
|
|
4548
4548
|
/** List search filters. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4549
4549
|
listSearchFilters(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
4550
|
+
/** Get listing. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4551
|
+
getListing(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
4550
4552
|
/** List markets. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4551
4553
|
listMarkets(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
4552
4554
|
/** Search vehicles. Generated from the OpenAPI spec; returns the raw response object. */
|
|
@@ -13604,6 +13606,20 @@ declare class YandexClient {
|
|
|
13604
13606
|
constructor(client: BaseClient);
|
|
13605
13607
|
}
|
|
13606
13608
|
|
|
13609
|
+
/**
|
|
13610
|
+
* Yelp API client. // --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
13611
|
+
*/
|
|
13612
|
+
|
|
13613
|
+
/** Client for all Yelp API operations. (Generated from the OpenAPI spec.) */
|
|
13614
|
+
declare class YelpClient {
|
|
13615
|
+
private readonly client;
|
|
13616
|
+
constructor(client: BaseClient);
|
|
13617
|
+
/** List markets. Generated from the OpenAPI spec; returns the raw response object. */
|
|
13618
|
+
listMarkets(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
13619
|
+
/** Search businesses. Generated from the OpenAPI spec; returns the raw response object. */
|
|
13620
|
+
searchBusinesses(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
13621
|
+
}
|
|
13622
|
+
|
|
13607
13623
|
/**
|
|
13608
13624
|
* TypeScript types for YouTube API responses.
|
|
13609
13625
|
*
|
|
@@ -20163,13 +20179,15 @@ declare class GeminiClient {
|
|
|
20163
20179
|
}
|
|
20164
20180
|
|
|
20165
20181
|
/**
|
|
20166
|
-
*
|
|
20182
|
+
* Public GitHub compatibility adapter with repository detail.
|
|
20167
20183
|
*/
|
|
20168
20184
|
|
|
20169
|
-
/**
|
|
20185
|
+
/** Public profile operations and repository detail. */
|
|
20170
20186
|
declare class GithubClient {
|
|
20171
20187
|
private readonly client;
|
|
20172
20188
|
constructor(client: BaseClient);
|
|
20189
|
+
/** Get public default-branch repository detail without query options. */
|
|
20190
|
+
getRepository(owner: string, repo: string): Promise<Record<string, unknown>>;
|
|
20173
20191
|
/** Get profile. Generated from the OpenAPI spec; returns the raw response object. */
|
|
20174
20192
|
getProfile(username: string, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
20175
20193
|
}
|
|
@@ -20214,6 +20232,13 @@ declare class GithubClient {
|
|
|
20214
20232
|
*/
|
|
20215
20233
|
declare class ScrapeBadger {
|
|
20216
20234
|
private readonly baseClient;
|
|
20235
|
+
/** Live endpoint discovery. Hidden endpoints are omitted; statuses update without an SDK release. */
|
|
20236
|
+
endpoints(): Promise<Array<{
|
|
20237
|
+
method: string;
|
|
20238
|
+
path: string;
|
|
20239
|
+
api: string;
|
|
20240
|
+
status: "active" | "temporarily_unavailable" | "deprecated";
|
|
20241
|
+
}>>;
|
|
20217
20242
|
/** Twitter API client */
|
|
20218
20243
|
readonly twitter: TwitterClient;
|
|
20219
20244
|
/** Web scraping API client */
|
|
@@ -20290,6 +20315,8 @@ declare class ScrapeBadger {
|
|
|
20290
20315
|
readonly yahoo: YahooClient;
|
|
20291
20316
|
/** Yandex scraper API client — web search, image search, reverse-image (CBIR), markets (tr/com/ru/by/kz/uz) */
|
|
20292
20317
|
readonly yandex: YandexClient;
|
|
20318
|
+
/** Yelp API client. (Generated from the OpenAPI spec.) */
|
|
20319
|
+
readonly yelp: YelpClient;
|
|
20293
20320
|
/** YouTube scraper API client — 39 endpoints */
|
|
20294
20321
|
readonly youtube: YoutubeClient;
|
|
20295
20322
|
/** Realtor scraper API client — 4 endpoints across 2 markets (us, ca) */
|
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { EventEmitter } from 'events';
|
|
|
3
3
|
import WebSocket from 'ws';
|
|
4
4
|
|
|
5
5
|
// src/internal/version.ts
|
|
6
|
-
var SDK_VERSION = "0.
|
|
6
|
+
var SDK_VERSION = "0.74.0";
|
|
7
7
|
|
|
8
8
|
// src/internal/exceptions.ts
|
|
9
9
|
var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
|
|
@@ -4632,6 +4632,10 @@ var Autoscout24Client = class {
|
|
|
4632
4632
|
async listSearchFilters(params = {}) {
|
|
4633
4633
|
return this.client.request("/v1/autoscout24/filters", { params });
|
|
4634
4634
|
}
|
|
4635
|
+
/** Get listing. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4636
|
+
async getListing(params = {}) {
|
|
4637
|
+
return this.client.request("/v1/autoscout24/listing", { params });
|
|
4638
|
+
}
|
|
4635
4639
|
/** List markets. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4636
4640
|
async listMarkets(params = {}) {
|
|
4637
4641
|
return this.client.request("/v1/autoscout24/markets", { params });
|
|
@@ -8592,6 +8596,22 @@ var YandexClient = class {
|
|
|
8592
8596
|
}
|
|
8593
8597
|
};
|
|
8594
8598
|
|
|
8599
|
+
// src/yelp/client.ts
|
|
8600
|
+
var YelpClient = class {
|
|
8601
|
+
client;
|
|
8602
|
+
constructor(client) {
|
|
8603
|
+
this.client = client;
|
|
8604
|
+
}
|
|
8605
|
+
/** List markets. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8606
|
+
async listMarkets(params = {}) {
|
|
8607
|
+
return this.client.request("/v1/yelp/markets", { params });
|
|
8608
|
+
}
|
|
8609
|
+
/** Search businesses. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8610
|
+
async searchBusinesses(params = {}) {
|
|
8611
|
+
return this.client.request("/v1/yelp/search", { params });
|
|
8612
|
+
}
|
|
8613
|
+
};
|
|
8614
|
+
|
|
8595
8615
|
// src/youtube/search.ts
|
|
8596
8616
|
var SearchClient15 = class {
|
|
8597
8617
|
client;
|
|
@@ -10683,6 +10703,15 @@ var GithubClient = class {
|
|
|
10683
10703
|
constructor(client) {
|
|
10684
10704
|
this.client = client;
|
|
10685
10705
|
}
|
|
10706
|
+
/** Get public default-branch repository detail without query options. */
|
|
10707
|
+
async getRepository(owner, repo) {
|
|
10708
|
+
if ([owner, repo].some((value) => value === "." || value === "..")) {
|
|
10709
|
+
throw new TypeError("owner and repo must not be dot path segments");
|
|
10710
|
+
}
|
|
10711
|
+
return this.client.request(
|
|
10712
|
+
`/v1/github/repositories/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}`
|
|
10713
|
+
);
|
|
10714
|
+
}
|
|
10686
10715
|
/** Get profile. Generated from the OpenAPI spec; returns the raw response object. */
|
|
10687
10716
|
async getProfile(username, params = {}) {
|
|
10688
10717
|
return this.client.request(`/v1/github/profiles/${username}`, { params });
|
|
@@ -10692,6 +10721,11 @@ var GithubClient = class {
|
|
|
10692
10721
|
// src/client.ts
|
|
10693
10722
|
var ScrapeBadger = class {
|
|
10694
10723
|
baseClient;
|
|
10724
|
+
/** Live endpoint discovery. Hidden endpoints are omitted; statuses update without an SDK release. */
|
|
10725
|
+
async endpoints() {
|
|
10726
|
+
const result = await this.baseClient.request("/api/public/endpoint-catalog");
|
|
10727
|
+
return result.endpoints;
|
|
10728
|
+
}
|
|
10695
10729
|
/** Twitter API client */
|
|
10696
10730
|
twitter;
|
|
10697
10731
|
/** Web scraping API client */
|
|
@@ -10768,6 +10802,8 @@ var ScrapeBadger = class {
|
|
|
10768
10802
|
yahoo;
|
|
10769
10803
|
/** Yandex scraper API client — web search, image search, reverse-image (CBIR), markets (tr/com/ru/by/kz/uz) */
|
|
10770
10804
|
yandex;
|
|
10805
|
+
/** Yelp API client. (Generated from the OpenAPI spec.) */
|
|
10806
|
+
yelp;
|
|
10771
10807
|
/** YouTube scraper API client — 39 endpoints */
|
|
10772
10808
|
youtube;
|
|
10773
10809
|
/** Realtor scraper API client — 4 endpoints across 2 markets (us, ca) */
|
|
@@ -10868,6 +10904,7 @@ var ScrapeBadger = class {
|
|
|
10868
10904
|
this.naver = new NaverClient(this.baseClient);
|
|
10869
10905
|
this.yahoo = new YahooClient(this.baseClient);
|
|
10870
10906
|
this.yandex = new YandexClient(this.baseClient);
|
|
10907
|
+
this.yelp = new YelpClient(this.baseClient);
|
|
10871
10908
|
this.youtube = new YoutubeClient(this.baseClient);
|
|
10872
10909
|
this.realtor = new RealtorClient(this.baseClient);
|
|
10873
10910
|
this.leboncoin = new LeboncoinClient(this.baseClient);
|