scrapebadger 0.32.0 → 0.33.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 +1 -0
- package/dist/index.d.cts +331 -41
- package/dist/index.d.ts +331 -41
- package/dist/index.js +134 -33
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +120 -23
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6291,8 +6291,102 @@ var BaiduClient = class {
|
|
|
6291
6291
|
}
|
|
6292
6292
|
};
|
|
6293
6293
|
|
|
6294
|
-
// src/
|
|
6294
|
+
// src/yandex/search.ts
|
|
6295
6295
|
var SearchClient12 = class {
|
|
6296
|
+
constructor(client) {
|
|
6297
|
+
this.client = client;
|
|
6298
|
+
}
|
|
6299
|
+
/**
|
|
6300
|
+
* Search yandex.<domain>.
|
|
6301
|
+
*
|
|
6302
|
+
* @param query - Search keywords, e.g. `"python asyncio"`.
|
|
6303
|
+
* @param params - Optional domain, page, lr (region id) and lang.
|
|
6304
|
+
* @returns A page of web results with organic results, ads and pagination.
|
|
6305
|
+
*/
|
|
6306
|
+
async search(query, params = {}) {
|
|
6307
|
+
return this.client.request("/v1/yandex/search", {
|
|
6308
|
+
params: {
|
|
6309
|
+
query,
|
|
6310
|
+
domain: params.domain,
|
|
6311
|
+
page: params.page,
|
|
6312
|
+
lr: params.lr,
|
|
6313
|
+
lang: params.lang
|
|
6314
|
+
}
|
|
6315
|
+
});
|
|
6316
|
+
}
|
|
6317
|
+
};
|
|
6318
|
+
|
|
6319
|
+
// src/yandex/images.ts
|
|
6320
|
+
var ImagesClient2 = class {
|
|
6321
|
+
constructor(client) {
|
|
6322
|
+
this.client = client;
|
|
6323
|
+
}
|
|
6324
|
+
/**
|
|
6325
|
+
* Search Yandex Images.
|
|
6326
|
+
*
|
|
6327
|
+
* @param query - Search keywords.
|
|
6328
|
+
* @param params - Optional domain and page.
|
|
6329
|
+
*/
|
|
6330
|
+
async search(query, params = {}) {
|
|
6331
|
+
return this.client.request("/v1/yandex/images/search", {
|
|
6332
|
+
params: {
|
|
6333
|
+
query,
|
|
6334
|
+
domain: params.domain,
|
|
6335
|
+
page: params.page
|
|
6336
|
+
}
|
|
6337
|
+
});
|
|
6338
|
+
}
|
|
6339
|
+
/**
|
|
6340
|
+
* Reverse-image (CBIR) search for a given image URL.
|
|
6341
|
+
*
|
|
6342
|
+
* @param imageUrl - The publicly reachable URL of the query image.
|
|
6343
|
+
* @param params - Optional domain.
|
|
6344
|
+
*/
|
|
6345
|
+
async reverse(imageUrl, params = {}) {
|
|
6346
|
+
return this.client.request("/v1/yandex/images/reverse", {
|
|
6347
|
+
params: {
|
|
6348
|
+
image_url: imageUrl,
|
|
6349
|
+
domain: params.domain
|
|
6350
|
+
}
|
|
6351
|
+
});
|
|
6352
|
+
}
|
|
6353
|
+
};
|
|
6354
|
+
|
|
6355
|
+
// src/yandex/reference.ts
|
|
6356
|
+
var ReferenceClient9 = class {
|
|
6357
|
+
constructor(client) {
|
|
6358
|
+
this.client = client;
|
|
6359
|
+
}
|
|
6360
|
+
/**
|
|
6361
|
+
* Get the supported Yandex markets.
|
|
6362
|
+
*/
|
|
6363
|
+
async markets() {
|
|
6364
|
+
return this.client.request("/v1/yandex/markets");
|
|
6365
|
+
}
|
|
6366
|
+
};
|
|
6367
|
+
|
|
6368
|
+
// src/yandex/client.ts
|
|
6369
|
+
var YandexClient = class {
|
|
6370
|
+
/** Client for web search (organic + ads + sitelinks + inline media) */
|
|
6371
|
+
search;
|
|
6372
|
+
/** Client for image search and reverse-image (CBIR) search */
|
|
6373
|
+
images;
|
|
6374
|
+
/** Client for the supported-markets list */
|
|
6375
|
+
reference;
|
|
6376
|
+
/**
|
|
6377
|
+
* Create a new Yandex client.
|
|
6378
|
+
*
|
|
6379
|
+
* @param client - The base HTTP client for making requests.
|
|
6380
|
+
*/
|
|
6381
|
+
constructor(client) {
|
|
6382
|
+
this.search = new SearchClient12(client);
|
|
6383
|
+
this.images = new ImagesClient2(client);
|
|
6384
|
+
this.reference = new ReferenceClient9(client);
|
|
6385
|
+
}
|
|
6386
|
+
};
|
|
6387
|
+
|
|
6388
|
+
// src/youtube/search.ts
|
|
6389
|
+
var SearchClient13 = class {
|
|
6296
6390
|
client;
|
|
6297
6391
|
constructor(client) {
|
|
6298
6392
|
this.client = client;
|
|
@@ -6817,7 +6911,7 @@ var MusicClient2 = class {
|
|
|
6817
6911
|
};
|
|
6818
6912
|
|
|
6819
6913
|
// src/youtube/reference.ts
|
|
6820
|
-
var
|
|
6914
|
+
var ReferenceClient10 = class {
|
|
6821
6915
|
client;
|
|
6822
6916
|
constructor(client) {
|
|
6823
6917
|
this.client = client;
|
|
@@ -6885,7 +6979,7 @@ var YoutubeClient = class {
|
|
|
6885
6979
|
* @param client - The base HTTP client for making requests.
|
|
6886
6980
|
*/
|
|
6887
6981
|
constructor(client) {
|
|
6888
|
-
this.search = new
|
|
6982
|
+
this.search = new SearchClient13(client);
|
|
6889
6983
|
this.videos = new VideosClient3(client);
|
|
6890
6984
|
this.channels = new ChannelsClient(client);
|
|
6891
6985
|
this.playlists = new PlaylistsClient(client);
|
|
@@ -6893,12 +6987,12 @@ var YoutubeClient = class {
|
|
|
6893
6987
|
this.shorts = new ShortsClient2(client);
|
|
6894
6988
|
this.trending = new TrendingClient2(client);
|
|
6895
6989
|
this.music = new MusicClient2(client);
|
|
6896
|
-
this.reference = new
|
|
6990
|
+
this.reference = new ReferenceClient10(client);
|
|
6897
6991
|
}
|
|
6898
6992
|
};
|
|
6899
6993
|
|
|
6900
6994
|
// src/realtor/search.ts
|
|
6901
|
-
var
|
|
6995
|
+
var SearchClient14 = class {
|
|
6902
6996
|
client;
|
|
6903
6997
|
constructor(client) {
|
|
6904
6998
|
this.client = client;
|
|
@@ -6972,7 +7066,7 @@ var PropertiesClient = class {
|
|
|
6972
7066
|
};
|
|
6973
7067
|
|
|
6974
7068
|
// src/realtor/reference.ts
|
|
6975
|
-
var
|
|
7069
|
+
var ReferenceClient11 = class {
|
|
6976
7070
|
client;
|
|
6977
7071
|
constructor(client) {
|
|
6978
7072
|
this.client = client;
|
|
@@ -7001,14 +7095,14 @@ var RealtorClient = class {
|
|
|
7001
7095
|
* @param client - The base HTTP client for making requests.
|
|
7002
7096
|
*/
|
|
7003
7097
|
constructor(client) {
|
|
7004
|
-
this.search = new
|
|
7098
|
+
this.search = new SearchClient14(client);
|
|
7005
7099
|
this.properties = new PropertiesClient(client);
|
|
7006
|
-
this.reference = new
|
|
7100
|
+
this.reference = new ReferenceClient11(client);
|
|
7007
7101
|
}
|
|
7008
7102
|
};
|
|
7009
7103
|
|
|
7010
7104
|
// src/leboncoin/search.ts
|
|
7011
|
-
var
|
|
7105
|
+
var SearchClient15 = class {
|
|
7012
7106
|
client;
|
|
7013
7107
|
constructor(client) {
|
|
7014
7108
|
this.client = client;
|
|
@@ -7110,7 +7204,7 @@ var SellersClient4 = class {
|
|
|
7110
7204
|
};
|
|
7111
7205
|
|
|
7112
7206
|
// src/leboncoin/reference.ts
|
|
7113
|
-
var
|
|
7207
|
+
var ReferenceClient12 = class {
|
|
7114
7208
|
client;
|
|
7115
7209
|
constructor(client) {
|
|
7116
7210
|
this.client = client;
|
|
@@ -7181,15 +7275,15 @@ var LeboncoinClient = class {
|
|
|
7181
7275
|
* @param client - The base HTTP client for making requests.
|
|
7182
7276
|
*/
|
|
7183
7277
|
constructor(client) {
|
|
7184
|
-
this.search = new
|
|
7278
|
+
this.search = new SearchClient15(client);
|
|
7185
7279
|
this.ads = new AdsClient2(client);
|
|
7186
7280
|
this.sellers = new SellersClient4(client);
|
|
7187
|
-
this.reference = new
|
|
7281
|
+
this.reference = new ReferenceClient12(client);
|
|
7188
7282
|
}
|
|
7189
7283
|
};
|
|
7190
7284
|
|
|
7191
7285
|
// src/zillow/search.ts
|
|
7192
|
-
var
|
|
7286
|
+
var SearchClient16 = class {
|
|
7193
7287
|
client;
|
|
7194
7288
|
constructor(client) {
|
|
7195
7289
|
this.client = client;
|
|
@@ -7293,7 +7387,7 @@ var AgentClient = class {
|
|
|
7293
7387
|
};
|
|
7294
7388
|
|
|
7295
7389
|
// src/zillow/reference.ts
|
|
7296
|
-
var
|
|
7390
|
+
var ReferenceClient13 = class {
|
|
7297
7391
|
client;
|
|
7298
7392
|
constructor(client) {
|
|
7299
7393
|
this.client = client;
|
|
@@ -7324,10 +7418,10 @@ var ZillowClient = class {
|
|
|
7324
7418
|
* @param client - The base HTTP client for making requests.
|
|
7325
7419
|
*/
|
|
7326
7420
|
constructor(client) {
|
|
7327
|
-
this.search = new
|
|
7421
|
+
this.search = new SearchClient16(client);
|
|
7328
7422
|
this.properties = new PropertiesClient2(client);
|
|
7329
7423
|
this.agent = new AgentClient(client);
|
|
7330
|
-
this.reference = new
|
|
7424
|
+
this.reference = new ReferenceClient13(client);
|
|
7331
7425
|
}
|
|
7332
7426
|
};
|
|
7333
7427
|
|
|
@@ -7462,7 +7556,7 @@ var ImmobiliareClient = class {
|
|
|
7462
7556
|
};
|
|
7463
7557
|
|
|
7464
7558
|
// src/loopnet/search.ts
|
|
7465
|
-
var
|
|
7559
|
+
var SearchClient17 = class {
|
|
7466
7560
|
client;
|
|
7467
7561
|
constructor(client) {
|
|
7468
7562
|
this.client = client;
|
|
@@ -7543,7 +7637,7 @@ var BrokersClient = class {
|
|
|
7543
7637
|
};
|
|
7544
7638
|
|
|
7545
7639
|
// src/loopnet/reference.ts
|
|
7546
|
-
var
|
|
7640
|
+
var ReferenceClient14 = class {
|
|
7547
7641
|
client;
|
|
7548
7642
|
constructor(client) {
|
|
7549
7643
|
this.client = client;
|
|
@@ -7586,10 +7680,10 @@ var LoopNetClient = class {
|
|
|
7586
7680
|
* @param client - The base HTTP client for making requests.
|
|
7587
7681
|
*/
|
|
7588
7682
|
constructor(client) {
|
|
7589
|
-
this.search = new
|
|
7683
|
+
this.search = new SearchClient17(client);
|
|
7590
7684
|
this.listings = new ListingsClient2(client);
|
|
7591
7685
|
this.brokers = new BrokersClient(client);
|
|
7592
|
-
this.reference = new
|
|
7686
|
+
this.reference = new ReferenceClient14(client);
|
|
7593
7687
|
}
|
|
7594
7688
|
};
|
|
7595
7689
|
|
|
@@ -7950,7 +8044,7 @@ var BrandClient = class {
|
|
|
7950
8044
|
};
|
|
7951
8045
|
|
|
7952
8046
|
// src/chatgpt/reference.ts
|
|
7953
|
-
var
|
|
8047
|
+
var ReferenceClient15 = class {
|
|
7954
8048
|
client;
|
|
7955
8049
|
constructor(client) {
|
|
7956
8050
|
this.client = client;
|
|
@@ -7996,7 +8090,7 @@ var ChatGPTClient = class {
|
|
|
7996
8090
|
constructor(client) {
|
|
7997
8091
|
this.ask = new AskClient(client);
|
|
7998
8092
|
this.brand = new BrandClient(client);
|
|
7999
|
-
this.reference = new
|
|
8093
|
+
this.reference = new ReferenceClient15(client);
|
|
8000
8094
|
}
|
|
8001
8095
|
};
|
|
8002
8096
|
|
|
@@ -8035,6 +8129,8 @@ var ScrapeBadger = class {
|
|
|
8035
8129
|
bing;
|
|
8036
8130
|
/** Baidu scraper API client — search, news, images, autocomplete (baidu.com, China's #1 search engine) */
|
|
8037
8131
|
baidu;
|
|
8132
|
+
/** Yandex scraper API client — web search, image search, reverse-image (CBIR), markets (tr/com/ru/by/kz/uz) */
|
|
8133
|
+
yandex;
|
|
8038
8134
|
/** YouTube scraper API client — 39 endpoints */
|
|
8039
8135
|
youtube;
|
|
8040
8136
|
/** Realtor scraper API client — 4 endpoints across 2 markets (us, ca) */
|
|
@@ -8103,6 +8199,7 @@ var ScrapeBadger = class {
|
|
|
8103
8199
|
this.duckduckgo = new DuckDuckGoClient(this.baseClient);
|
|
8104
8200
|
this.bing = new BingClient(this.baseClient);
|
|
8105
8201
|
this.baidu = new BaiduClient(this.baseClient);
|
|
8202
|
+
this.yandex = new YandexClient(this.baseClient);
|
|
8106
8203
|
this.youtube = new YoutubeClient(this.baseClient);
|
|
8107
8204
|
this.realtor = new RealtorClient(this.baseClient);
|
|
8108
8205
|
this.leboncoin = new LeboncoinClient(this.baseClient);
|
|
@@ -8133,7 +8230,7 @@ exports.BingSearchClient = SearchClient11;
|
|
|
8133
8230
|
exports.ChatGPTAskClient = AskClient;
|
|
8134
8231
|
exports.ChatGPTBrandClient = BrandClient;
|
|
8135
8232
|
exports.ChatGPTClient = ChatGPTClient;
|
|
8136
|
-
exports.ChatGPTReferenceClient =
|
|
8233
|
+
exports.ChatGPTReferenceClient = ReferenceClient15;
|
|
8137
8234
|
exports.CommunitiesClient = CommunitiesClient;
|
|
8138
8235
|
exports.ConflictError = ConflictError;
|
|
8139
8236
|
exports.DepopClient = DepopClient;
|
|
@@ -8178,22 +8275,22 @@ exports.InstagramUsersClient = UsersClient4;
|
|
|
8178
8275
|
exports.InsufficientCreditsError = InsufficientCreditsError;
|
|
8179
8276
|
exports.LeboncoinAdsClient = AdsClient2;
|
|
8180
8277
|
exports.LeboncoinClient = LeboncoinClient;
|
|
8181
|
-
exports.LeboncoinReferenceClient =
|
|
8182
|
-
exports.LeboncoinSearchClient =
|
|
8278
|
+
exports.LeboncoinReferenceClient = ReferenceClient12;
|
|
8279
|
+
exports.LeboncoinSearchClient = SearchClient15;
|
|
8183
8280
|
exports.LeboncoinSellersClient = SellersClient4;
|
|
8184
8281
|
exports.LinkedInClient = LinkedInClient;
|
|
8185
8282
|
exports.ListsClient = ListsClient;
|
|
8186
8283
|
exports.LoopNetBrokersClient = BrokersClient;
|
|
8187
8284
|
exports.LoopNetClient = LoopNetClient;
|
|
8188
8285
|
exports.LoopNetListingsClient = ListingsClient2;
|
|
8189
|
-
exports.LoopNetReferenceClient =
|
|
8190
|
-
exports.LoopNetSearchClient =
|
|
8286
|
+
exports.LoopNetReferenceClient = ReferenceClient14;
|
|
8287
|
+
exports.LoopNetSearchClient = SearchClient17;
|
|
8191
8288
|
exports.NotFoundError = NotFoundError;
|
|
8192
8289
|
exports.RateLimitError = RateLimitError;
|
|
8193
8290
|
exports.RealtorClient = RealtorClient;
|
|
8194
8291
|
exports.RealtorPropertiesClient = PropertiesClient;
|
|
8195
|
-
exports.RealtorReferenceClient =
|
|
8196
|
-
exports.RealtorSearchClient =
|
|
8292
|
+
exports.RealtorReferenceClient = ReferenceClient11;
|
|
8293
|
+
exports.RealtorSearchClient = SearchClient14;
|
|
8197
8294
|
exports.RedditClient = RedditClient;
|
|
8198
8295
|
exports.RedditPostsClient = PostsClient;
|
|
8199
8296
|
exports.RedditSearchClient = SearchClient3;
|
|
@@ -8238,21 +8335,25 @@ exports.WalmartSellersClient = SellersClient3;
|
|
|
8238
8335
|
exports.WalmartStoresClient = StoresClient;
|
|
8239
8336
|
exports.WebClient = WebClient;
|
|
8240
8337
|
exports.WebSocketStreamError = WebSocketStreamError;
|
|
8338
|
+
exports.YandexClient = YandexClient;
|
|
8339
|
+
exports.YandexImagesClient = ImagesClient2;
|
|
8340
|
+
exports.YandexReferenceClient = ReferenceClient9;
|
|
8341
|
+
exports.YandexSearchClient = SearchClient12;
|
|
8241
8342
|
exports.YoutubeChannelsClient = ChannelsClient;
|
|
8242
8343
|
exports.YoutubeClient = YoutubeClient;
|
|
8243
8344
|
exports.YoutubeCommunityClient = CommunityClient;
|
|
8244
8345
|
exports.YoutubeMusicClient = MusicClient2;
|
|
8245
8346
|
exports.YoutubePlaylistsClient = PlaylistsClient;
|
|
8246
|
-
exports.YoutubeReferenceClient =
|
|
8247
|
-
exports.YoutubeSearchClient =
|
|
8347
|
+
exports.YoutubeReferenceClient = ReferenceClient10;
|
|
8348
|
+
exports.YoutubeSearchClient = SearchClient13;
|
|
8248
8349
|
exports.YoutubeShortsClient = ShortsClient2;
|
|
8249
8350
|
exports.YoutubeTrendingClient = TrendingClient2;
|
|
8250
8351
|
exports.YoutubeVideosClient = VideosClient3;
|
|
8251
8352
|
exports.ZillowAgentClient = AgentClient;
|
|
8252
8353
|
exports.ZillowClient = ZillowClient;
|
|
8253
8354
|
exports.ZillowPropertiesClient = PropertiesClient2;
|
|
8254
|
-
exports.ZillowReferenceClient =
|
|
8255
|
-
exports.ZillowSearchClient =
|
|
8355
|
+
exports.ZillowReferenceClient = ReferenceClient13;
|
|
8356
|
+
exports.ZillowSearchClient = SearchClient16;
|
|
8256
8357
|
exports.collectAll = collectAll;
|
|
8257
8358
|
exports.verifyWebhookSignature = verifyWebhookSignature;
|
|
8258
8359
|
//# sourceMappingURL=index.js.map
|