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/dist/index.mjs CHANGED
@@ -6285,8 +6285,102 @@ var BaiduClient = class {
6285
6285
  }
6286
6286
  };
6287
6287
 
6288
- // src/youtube/search.ts
6288
+ // src/yandex/search.ts
6289
6289
  var SearchClient12 = class {
6290
+ constructor(client) {
6291
+ this.client = client;
6292
+ }
6293
+ /**
6294
+ * Search yandex.<domain>.
6295
+ *
6296
+ * @param query - Search keywords, e.g. `"python asyncio"`.
6297
+ * @param params - Optional domain, page, lr (region id) and lang.
6298
+ * @returns A page of web results with organic results, ads and pagination.
6299
+ */
6300
+ async search(query, params = {}) {
6301
+ return this.client.request("/v1/yandex/search", {
6302
+ params: {
6303
+ query,
6304
+ domain: params.domain,
6305
+ page: params.page,
6306
+ lr: params.lr,
6307
+ lang: params.lang
6308
+ }
6309
+ });
6310
+ }
6311
+ };
6312
+
6313
+ // src/yandex/images.ts
6314
+ var ImagesClient2 = class {
6315
+ constructor(client) {
6316
+ this.client = client;
6317
+ }
6318
+ /**
6319
+ * Search Yandex Images.
6320
+ *
6321
+ * @param query - Search keywords.
6322
+ * @param params - Optional domain and page.
6323
+ */
6324
+ async search(query, params = {}) {
6325
+ return this.client.request("/v1/yandex/images/search", {
6326
+ params: {
6327
+ query,
6328
+ domain: params.domain,
6329
+ page: params.page
6330
+ }
6331
+ });
6332
+ }
6333
+ /**
6334
+ * Reverse-image (CBIR) search for a given image URL.
6335
+ *
6336
+ * @param imageUrl - The publicly reachable URL of the query image.
6337
+ * @param params - Optional domain.
6338
+ */
6339
+ async reverse(imageUrl, params = {}) {
6340
+ return this.client.request("/v1/yandex/images/reverse", {
6341
+ params: {
6342
+ image_url: imageUrl,
6343
+ domain: params.domain
6344
+ }
6345
+ });
6346
+ }
6347
+ };
6348
+
6349
+ // src/yandex/reference.ts
6350
+ var ReferenceClient9 = class {
6351
+ constructor(client) {
6352
+ this.client = client;
6353
+ }
6354
+ /**
6355
+ * Get the supported Yandex markets.
6356
+ */
6357
+ async markets() {
6358
+ return this.client.request("/v1/yandex/markets");
6359
+ }
6360
+ };
6361
+
6362
+ // src/yandex/client.ts
6363
+ var YandexClient = class {
6364
+ /** Client for web search (organic + ads + sitelinks + inline media) */
6365
+ search;
6366
+ /** Client for image search and reverse-image (CBIR) search */
6367
+ images;
6368
+ /** Client for the supported-markets list */
6369
+ reference;
6370
+ /**
6371
+ * Create a new Yandex client.
6372
+ *
6373
+ * @param client - The base HTTP client for making requests.
6374
+ */
6375
+ constructor(client) {
6376
+ this.search = new SearchClient12(client);
6377
+ this.images = new ImagesClient2(client);
6378
+ this.reference = new ReferenceClient9(client);
6379
+ }
6380
+ };
6381
+
6382
+ // src/youtube/search.ts
6383
+ var SearchClient13 = class {
6290
6384
  client;
6291
6385
  constructor(client) {
6292
6386
  this.client = client;
@@ -6811,7 +6905,7 @@ var MusicClient2 = class {
6811
6905
  };
6812
6906
 
6813
6907
  // src/youtube/reference.ts
6814
- var ReferenceClient9 = class {
6908
+ var ReferenceClient10 = class {
6815
6909
  client;
6816
6910
  constructor(client) {
6817
6911
  this.client = client;
@@ -6879,7 +6973,7 @@ var YoutubeClient = class {
6879
6973
  * @param client - The base HTTP client for making requests.
6880
6974
  */
6881
6975
  constructor(client) {
6882
- this.search = new SearchClient12(client);
6976
+ this.search = new SearchClient13(client);
6883
6977
  this.videos = new VideosClient3(client);
6884
6978
  this.channels = new ChannelsClient(client);
6885
6979
  this.playlists = new PlaylistsClient(client);
@@ -6887,12 +6981,12 @@ var YoutubeClient = class {
6887
6981
  this.shorts = new ShortsClient2(client);
6888
6982
  this.trending = new TrendingClient2(client);
6889
6983
  this.music = new MusicClient2(client);
6890
- this.reference = new ReferenceClient9(client);
6984
+ this.reference = new ReferenceClient10(client);
6891
6985
  }
6892
6986
  };
6893
6987
 
6894
6988
  // src/realtor/search.ts
6895
- var SearchClient13 = class {
6989
+ var SearchClient14 = class {
6896
6990
  client;
6897
6991
  constructor(client) {
6898
6992
  this.client = client;
@@ -6966,7 +7060,7 @@ var PropertiesClient = class {
6966
7060
  };
6967
7061
 
6968
7062
  // src/realtor/reference.ts
6969
- var ReferenceClient10 = class {
7063
+ var ReferenceClient11 = class {
6970
7064
  client;
6971
7065
  constructor(client) {
6972
7066
  this.client = client;
@@ -6995,14 +7089,14 @@ var RealtorClient = class {
6995
7089
  * @param client - The base HTTP client for making requests.
6996
7090
  */
6997
7091
  constructor(client) {
6998
- this.search = new SearchClient13(client);
7092
+ this.search = new SearchClient14(client);
6999
7093
  this.properties = new PropertiesClient(client);
7000
- this.reference = new ReferenceClient10(client);
7094
+ this.reference = new ReferenceClient11(client);
7001
7095
  }
7002
7096
  };
7003
7097
 
7004
7098
  // src/leboncoin/search.ts
7005
- var SearchClient14 = class {
7099
+ var SearchClient15 = class {
7006
7100
  client;
7007
7101
  constructor(client) {
7008
7102
  this.client = client;
@@ -7104,7 +7198,7 @@ var SellersClient4 = class {
7104
7198
  };
7105
7199
 
7106
7200
  // src/leboncoin/reference.ts
7107
- var ReferenceClient11 = class {
7201
+ var ReferenceClient12 = class {
7108
7202
  client;
7109
7203
  constructor(client) {
7110
7204
  this.client = client;
@@ -7175,15 +7269,15 @@ var LeboncoinClient = class {
7175
7269
  * @param client - The base HTTP client for making requests.
7176
7270
  */
7177
7271
  constructor(client) {
7178
- this.search = new SearchClient14(client);
7272
+ this.search = new SearchClient15(client);
7179
7273
  this.ads = new AdsClient2(client);
7180
7274
  this.sellers = new SellersClient4(client);
7181
- this.reference = new ReferenceClient11(client);
7275
+ this.reference = new ReferenceClient12(client);
7182
7276
  }
7183
7277
  };
7184
7278
 
7185
7279
  // src/zillow/search.ts
7186
- var SearchClient15 = class {
7280
+ var SearchClient16 = class {
7187
7281
  client;
7188
7282
  constructor(client) {
7189
7283
  this.client = client;
@@ -7287,7 +7381,7 @@ var AgentClient = class {
7287
7381
  };
7288
7382
 
7289
7383
  // src/zillow/reference.ts
7290
- var ReferenceClient12 = class {
7384
+ var ReferenceClient13 = class {
7291
7385
  client;
7292
7386
  constructor(client) {
7293
7387
  this.client = client;
@@ -7318,10 +7412,10 @@ var ZillowClient = class {
7318
7412
  * @param client - The base HTTP client for making requests.
7319
7413
  */
7320
7414
  constructor(client) {
7321
- this.search = new SearchClient15(client);
7415
+ this.search = new SearchClient16(client);
7322
7416
  this.properties = new PropertiesClient2(client);
7323
7417
  this.agent = new AgentClient(client);
7324
- this.reference = new ReferenceClient12(client);
7418
+ this.reference = new ReferenceClient13(client);
7325
7419
  }
7326
7420
  };
7327
7421
 
@@ -7456,7 +7550,7 @@ var ImmobiliareClient = class {
7456
7550
  };
7457
7551
 
7458
7552
  // src/loopnet/search.ts
7459
- var SearchClient16 = class {
7553
+ var SearchClient17 = class {
7460
7554
  client;
7461
7555
  constructor(client) {
7462
7556
  this.client = client;
@@ -7537,7 +7631,7 @@ var BrokersClient = class {
7537
7631
  };
7538
7632
 
7539
7633
  // src/loopnet/reference.ts
7540
- var ReferenceClient13 = class {
7634
+ var ReferenceClient14 = class {
7541
7635
  client;
7542
7636
  constructor(client) {
7543
7637
  this.client = client;
@@ -7580,10 +7674,10 @@ var LoopNetClient = class {
7580
7674
  * @param client - The base HTTP client for making requests.
7581
7675
  */
7582
7676
  constructor(client) {
7583
- this.search = new SearchClient16(client);
7677
+ this.search = new SearchClient17(client);
7584
7678
  this.listings = new ListingsClient2(client);
7585
7679
  this.brokers = new BrokersClient(client);
7586
- this.reference = new ReferenceClient13(client);
7680
+ this.reference = new ReferenceClient14(client);
7587
7681
  }
7588
7682
  };
7589
7683
 
@@ -7944,7 +8038,7 @@ var BrandClient = class {
7944
8038
  };
7945
8039
 
7946
8040
  // src/chatgpt/reference.ts
7947
- var ReferenceClient14 = class {
8041
+ var ReferenceClient15 = class {
7948
8042
  client;
7949
8043
  constructor(client) {
7950
8044
  this.client = client;
@@ -7990,7 +8084,7 @@ var ChatGPTClient = class {
7990
8084
  constructor(client) {
7991
8085
  this.ask = new AskClient(client);
7992
8086
  this.brand = new BrandClient(client);
7993
- this.reference = new ReferenceClient14(client);
8087
+ this.reference = new ReferenceClient15(client);
7994
8088
  }
7995
8089
  };
7996
8090
 
@@ -8029,6 +8123,8 @@ var ScrapeBadger = class {
8029
8123
  bing;
8030
8124
  /** Baidu scraper API client — search, news, images, autocomplete (baidu.com, China's #1 search engine) */
8031
8125
  baidu;
8126
+ /** Yandex scraper API client — web search, image search, reverse-image (CBIR), markets (tr/com/ru/by/kz/uz) */
8127
+ yandex;
8032
8128
  /** YouTube scraper API client — 39 endpoints */
8033
8129
  youtube;
8034
8130
  /** Realtor scraper API client — 4 endpoints across 2 markets (us, ca) */
@@ -8097,6 +8193,7 @@ var ScrapeBadger = class {
8097
8193
  this.duckduckgo = new DuckDuckGoClient(this.baseClient);
8098
8194
  this.bing = new BingClient(this.baseClient);
8099
8195
  this.baidu = new BaiduClient(this.baseClient);
8196
+ this.yandex = new YandexClient(this.baseClient);
8100
8197
  this.youtube = new YoutubeClient(this.baseClient);
8101
8198
  this.realtor = new RealtorClient(this.baseClient);
8102
8199
  this.leboncoin = new LeboncoinClient(this.baseClient);
@@ -8109,6 +8206,6 @@ var ScrapeBadger = class {
8109
8206
  }
8110
8207
  };
8111
8208
 
8112
- export { AccountRestrictedError, AmazonClient, ListingsClient as AmazonListingsClient, ProductsClient2 as AmazonProductsClient, ReferenceClient2 as AmazonReferenceClient, SearchClient5 as AmazonSearchClient, SellersClient as AmazonSellersClient, ApartmentsClient, AuthenticationError, BaiduClient, BingClient, MediaClient3 as BingMediaClient, NewsClient2 as BingNewsClient, ReferenceClient8 as BingReferenceClient, SearchClient11 as BingSearchClient, AskClient as ChatGPTAskClient, BrandClient as ChatGPTBrandClient, ChatGPTClient, ReferenceClient14 as ChatGPTReferenceClient, CommunitiesClient, ConflictError, DepopClient, DuckDuckGoClient, MediaClient2 as DuckDuckGoMediaClient, ReferenceClient7 as DuckDuckGoReferenceClient, SearchClient10 as DuckDuckGoSearchClient, CategoriesClient as EbayCategoriesClient, EbayClient, ItemsClient2 as EbayItemsClient, ReferenceClient5 as EbayReferenceClient, SearchClient8 as EbaySearchClient, SellersClient2 as EbaySellersClient, GeoClient, AiModeClient as GoogleAiModeClient, AutocompleteClient as GoogleAutocompleteClient, GoogleClient, FinanceClient as GoogleFinanceClient, FlightsClient as GoogleFlightsClient, HotelsClient as GoogleHotelsClient, ImagesClient as GoogleImagesClient, JobsClient as GoogleJobsClient, LensClient as GoogleLensClient, MapsClient as GoogleMapsClient, NewsClient as GoogleNewsClient, PatentsClient as GooglePatentsClient, ProductsClient as GoogleProductsClient, ScholarClient as GoogleScholarClient, SearchClient2 as GoogleSearchClient, ShoppingClient as GoogleShoppingClient, ShortsClient as GoogleShortsClient, TrendsClient2 as GoogleTrendsClient, VideosClient as GoogleVideosClient, ImmobiliareClient, AudioClient as InstagramAudioClient, InstagramClient, HashtagsClient as InstagramHashtagsClient, LocationsClient as InstagramLocationsClient, MediaClient as InstagramMediaClient, SearchClient4 as InstagramSearchClient, UsersClient4 as InstagramUsersClient, InsufficientCreditsError, AdsClient2 as LeboncoinAdsClient, LeboncoinClient, ReferenceClient11 as LeboncoinReferenceClient, SearchClient14 as LeboncoinSearchClient, SellersClient4 as LeboncoinSellersClient, LinkedInClient, ListsClient, BrokersClient as LoopNetBrokersClient, LoopNetClient, ListingsClient2 as LoopNetListingsClient, ReferenceClient13 as LoopNetReferenceClient, SearchClient16 as LoopNetSearchClient, NotFoundError, RateLimitError, RealtorClient, PropertiesClient as RealtorPropertiesClient, ReferenceClient10 as RealtorReferenceClient, SearchClient13 as RealtorSearchClient, RedditClient, PostsClient as RedditPostsClient, SearchClient3 as RedditSearchClient, SubredditsClient as RedditSubredditsClient, UsersClient3 as RedditUsersClient, RedfinClient, ScrapeBadger, ScrapeBadgerError, ServerError, ShopeeClient, ProductsClient3 as ShopeeProductsClient, ReferenceClient3 as ShopeeReferenceClient, ReviewsClient as ShopeeReviewsClient, SearchClient6 as ShopeeSearchClient, SpacesClient, StreamClient, AdsClient as TikTokAdsClient, TikTokClient, HashtagsClient2 as TikTokHashtagsClient, MusicClient as TikTokMusicClient, ReferenceClient4 as TikTokReferenceClient, SearchClient7 as TikTokSearchClient, TrendingClient as TikTokTrendingClient, UsersClient5 as TikTokUsersClient, VideosClient2 as TikTokVideosClient, TimeoutError, TrendsClient, TweetsClient, TwitterClient, UsersClient, ValidationError, VintedClient, ItemsClient as VintedItemsClient, ReferenceClient as VintedReferenceClient, SearchClient as VintedSearchClient, UsersClient2 as VintedUsersClient, WalmartClient, ProductsClient4 as WalmartProductsClient, ReferenceClient6 as WalmartReferenceClient, SearchClient9 as WalmartSearchClient, SellersClient3 as WalmartSellersClient, StoresClient as WalmartStoresClient, WebClient, WebSocketStreamError, ChannelsClient as YoutubeChannelsClient, YoutubeClient, CommunityClient as YoutubeCommunityClient, MusicClient2 as YoutubeMusicClient, PlaylistsClient as YoutubePlaylistsClient, ReferenceClient9 as YoutubeReferenceClient, SearchClient12 as YoutubeSearchClient, ShortsClient2 as YoutubeShortsClient, TrendingClient2 as YoutubeTrendingClient, VideosClient3 as YoutubeVideosClient, AgentClient as ZillowAgentClient, ZillowClient, PropertiesClient2 as ZillowPropertiesClient, ReferenceClient12 as ZillowReferenceClient, SearchClient15 as ZillowSearchClient, collectAll, verifyWebhookSignature };
8209
+ export { AccountRestrictedError, AmazonClient, ListingsClient as AmazonListingsClient, ProductsClient2 as AmazonProductsClient, ReferenceClient2 as AmazonReferenceClient, SearchClient5 as AmazonSearchClient, SellersClient as AmazonSellersClient, ApartmentsClient, AuthenticationError, BaiduClient, BingClient, MediaClient3 as BingMediaClient, NewsClient2 as BingNewsClient, ReferenceClient8 as BingReferenceClient, SearchClient11 as BingSearchClient, AskClient as ChatGPTAskClient, BrandClient as ChatGPTBrandClient, ChatGPTClient, ReferenceClient15 as ChatGPTReferenceClient, CommunitiesClient, ConflictError, DepopClient, DuckDuckGoClient, MediaClient2 as DuckDuckGoMediaClient, ReferenceClient7 as DuckDuckGoReferenceClient, SearchClient10 as DuckDuckGoSearchClient, CategoriesClient as EbayCategoriesClient, EbayClient, ItemsClient2 as EbayItemsClient, ReferenceClient5 as EbayReferenceClient, SearchClient8 as EbaySearchClient, SellersClient2 as EbaySellersClient, GeoClient, AiModeClient as GoogleAiModeClient, AutocompleteClient as GoogleAutocompleteClient, GoogleClient, FinanceClient as GoogleFinanceClient, FlightsClient as GoogleFlightsClient, HotelsClient as GoogleHotelsClient, ImagesClient as GoogleImagesClient, JobsClient as GoogleJobsClient, LensClient as GoogleLensClient, MapsClient as GoogleMapsClient, NewsClient as GoogleNewsClient, PatentsClient as GooglePatentsClient, ProductsClient as GoogleProductsClient, ScholarClient as GoogleScholarClient, SearchClient2 as GoogleSearchClient, ShoppingClient as GoogleShoppingClient, ShortsClient as GoogleShortsClient, TrendsClient2 as GoogleTrendsClient, VideosClient as GoogleVideosClient, ImmobiliareClient, AudioClient as InstagramAudioClient, InstagramClient, HashtagsClient as InstagramHashtagsClient, LocationsClient as InstagramLocationsClient, MediaClient as InstagramMediaClient, SearchClient4 as InstagramSearchClient, UsersClient4 as InstagramUsersClient, InsufficientCreditsError, AdsClient2 as LeboncoinAdsClient, LeboncoinClient, ReferenceClient12 as LeboncoinReferenceClient, SearchClient15 as LeboncoinSearchClient, SellersClient4 as LeboncoinSellersClient, LinkedInClient, ListsClient, BrokersClient as LoopNetBrokersClient, LoopNetClient, ListingsClient2 as LoopNetListingsClient, ReferenceClient14 as LoopNetReferenceClient, SearchClient17 as LoopNetSearchClient, NotFoundError, RateLimitError, RealtorClient, PropertiesClient as RealtorPropertiesClient, ReferenceClient11 as RealtorReferenceClient, SearchClient14 as RealtorSearchClient, RedditClient, PostsClient as RedditPostsClient, SearchClient3 as RedditSearchClient, SubredditsClient as RedditSubredditsClient, UsersClient3 as RedditUsersClient, RedfinClient, ScrapeBadger, ScrapeBadgerError, ServerError, ShopeeClient, ProductsClient3 as ShopeeProductsClient, ReferenceClient3 as ShopeeReferenceClient, ReviewsClient as ShopeeReviewsClient, SearchClient6 as ShopeeSearchClient, SpacesClient, StreamClient, AdsClient as TikTokAdsClient, TikTokClient, HashtagsClient2 as TikTokHashtagsClient, MusicClient as TikTokMusicClient, ReferenceClient4 as TikTokReferenceClient, SearchClient7 as TikTokSearchClient, TrendingClient as TikTokTrendingClient, UsersClient5 as TikTokUsersClient, VideosClient2 as TikTokVideosClient, TimeoutError, TrendsClient, TweetsClient, TwitterClient, UsersClient, ValidationError, VintedClient, ItemsClient as VintedItemsClient, ReferenceClient as VintedReferenceClient, SearchClient as VintedSearchClient, UsersClient2 as VintedUsersClient, WalmartClient, ProductsClient4 as WalmartProductsClient, ReferenceClient6 as WalmartReferenceClient, SearchClient9 as WalmartSearchClient, SellersClient3 as WalmartSellersClient, StoresClient as WalmartStoresClient, WebClient, WebSocketStreamError, YandexClient, ImagesClient2 as YandexImagesClient, ReferenceClient9 as YandexReferenceClient, SearchClient12 as YandexSearchClient, ChannelsClient as YoutubeChannelsClient, YoutubeClient, CommunityClient as YoutubeCommunityClient, MusicClient2 as YoutubeMusicClient, PlaylistsClient as YoutubePlaylistsClient, ReferenceClient10 as YoutubeReferenceClient, SearchClient13 as YoutubeSearchClient, ShortsClient2 as YoutubeShortsClient, TrendingClient2 as YoutubeTrendingClient, VideosClient3 as YoutubeVideosClient, AgentClient as ZillowAgentClient, ZillowClient, PropertiesClient2 as ZillowPropertiesClient, ReferenceClient13 as ZillowReferenceClient, SearchClient16 as ZillowSearchClient, collectAll, verifyWebhookSignature };
8113
8210
  //# sourceMappingURL=index.mjs.map
8114
8211
  //# sourceMappingURL=index.mjs.map