scrapebadger 0.40.0 → 0.40.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.d.cts +28 -7
- package/dist/index.d.ts +28 -7
- package/dist/index.js +29 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +29 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -4143,7 +4143,10 @@ declare class UsersClient$1 {
|
|
|
4143
4143
|
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4144
4144
|
*/
|
|
4145
4145
|
about(username: string): Promise<UserAbout>;
|
|
4146
|
-
/**
|
|
4146
|
+
/**
|
|
4147
|
+
* Get accounts related/suggested for a user.
|
|
4148
|
+
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4149
|
+
*/
|
|
4147
4150
|
related(username: string): Promise<Paginated<UserShort>>;
|
|
4148
4151
|
/** Get a user's timeline posts. */
|
|
4149
4152
|
posts(username: string, options?: {
|
|
@@ -4255,7 +4258,10 @@ declare class MediaClient$3 {
|
|
|
4255
4258
|
* @param code - The media shortcode (from the `/p/<code>/` URL).
|
|
4256
4259
|
*/
|
|
4257
4260
|
get(code: string): Promise<Media>;
|
|
4258
|
-
/**
|
|
4261
|
+
/**
|
|
4262
|
+
* Get oEmbed metadata for a media permalink.
|
|
4263
|
+
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4264
|
+
*/
|
|
4259
4265
|
oembed(code: string): Promise<Oembed>;
|
|
4260
4266
|
/** Get top-level comments on a media. */
|
|
4261
4267
|
comments(code: string, options?: {
|
|
@@ -4275,7 +4281,10 @@ declare class MediaClient$3 {
|
|
|
4275
4281
|
amount?: number;
|
|
4276
4282
|
cursor?: string;
|
|
4277
4283
|
}): Promise<Paginated<Comment$1>>;
|
|
4278
|
-
/**
|
|
4284
|
+
/**
|
|
4285
|
+
* Get the users who liked a comment.
|
|
4286
|
+
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4287
|
+
*/
|
|
4279
4288
|
commentLikers(code: string, commentId: string): Promise<Paginated<UserShort>>;
|
|
4280
4289
|
}
|
|
4281
4290
|
|
|
@@ -4309,7 +4318,10 @@ declare class SearchClient$e {
|
|
|
4309
4318
|
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4310
4319
|
*/
|
|
4311
4320
|
users(query: string): Promise<Paginated<UserShort>>;
|
|
4312
|
-
/**
|
|
4321
|
+
/**
|
|
4322
|
+
* Search hashtags.
|
|
4323
|
+
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4324
|
+
*/
|
|
4313
4325
|
hashtags(query: string): Promise<Paginated<Hashtag>>;
|
|
4314
4326
|
/**
|
|
4315
4327
|
* Search places/locations.
|
|
@@ -4326,7 +4338,10 @@ declare class SearchClient$e {
|
|
|
4326
4338
|
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4327
4339
|
*/
|
|
4328
4340
|
music(query: string): Promise<Paginated<Audio>>;
|
|
4329
|
-
/**
|
|
4341
|
+
/**
|
|
4342
|
+
* Get blended "top" results (users, hashtags, and places).
|
|
4343
|
+
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4344
|
+
*/
|
|
4330
4345
|
top(query: string): Promise<SearchTopResponse>;
|
|
4331
4346
|
/**
|
|
4332
4347
|
* Get typeahead/autocomplete suggestions (mixed entity types).
|
|
@@ -4346,7 +4361,10 @@ declare class SearchClient$e {
|
|
|
4346
4361
|
declare class HashtagsClient$1 {
|
|
4347
4362
|
private readonly client;
|
|
4348
4363
|
constructor(client: BaseClient);
|
|
4349
|
-
/**
|
|
4364
|
+
/**
|
|
4365
|
+
* Get a hashtag's info (media count, cover).
|
|
4366
|
+
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4367
|
+
*/
|
|
4350
4368
|
get(tag: string): Promise<Hashtag>;
|
|
4351
4369
|
/**
|
|
4352
4370
|
* Get the top/popular media for a hashtag.
|
|
@@ -4356,7 +4374,10 @@ declare class HashtagsClient$1 {
|
|
|
4356
4374
|
amount?: number;
|
|
4357
4375
|
cursor?: string;
|
|
4358
4376
|
}): Promise<Paginated<Media>>;
|
|
4359
|
-
/**
|
|
4377
|
+
/**
|
|
4378
|
+
* Get the most recent media for a hashtag.
|
|
4379
|
+
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4380
|
+
*/
|
|
4360
4381
|
recent(tag: string, options?: {
|
|
4361
4382
|
amount?: number;
|
|
4362
4383
|
cursor?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -4143,7 +4143,10 @@ declare class UsersClient$1 {
|
|
|
4143
4143
|
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4144
4144
|
*/
|
|
4145
4145
|
about(username: string): Promise<UserAbout>;
|
|
4146
|
-
/**
|
|
4146
|
+
/**
|
|
4147
|
+
* Get accounts related/suggested for a user.
|
|
4148
|
+
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4149
|
+
*/
|
|
4147
4150
|
related(username: string): Promise<Paginated<UserShort>>;
|
|
4148
4151
|
/** Get a user's timeline posts. */
|
|
4149
4152
|
posts(username: string, options?: {
|
|
@@ -4255,7 +4258,10 @@ declare class MediaClient$3 {
|
|
|
4255
4258
|
* @param code - The media shortcode (from the `/p/<code>/` URL).
|
|
4256
4259
|
*/
|
|
4257
4260
|
get(code: string): Promise<Media>;
|
|
4258
|
-
/**
|
|
4261
|
+
/**
|
|
4262
|
+
* Get oEmbed metadata for a media permalink.
|
|
4263
|
+
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4264
|
+
*/
|
|
4259
4265
|
oembed(code: string): Promise<Oembed>;
|
|
4260
4266
|
/** Get top-level comments on a media. */
|
|
4261
4267
|
comments(code: string, options?: {
|
|
@@ -4275,7 +4281,10 @@ declare class MediaClient$3 {
|
|
|
4275
4281
|
amount?: number;
|
|
4276
4282
|
cursor?: string;
|
|
4277
4283
|
}): Promise<Paginated<Comment$1>>;
|
|
4278
|
-
/**
|
|
4284
|
+
/**
|
|
4285
|
+
* Get the users who liked a comment.
|
|
4286
|
+
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4287
|
+
*/
|
|
4279
4288
|
commentLikers(code: string, commentId: string): Promise<Paginated<UserShort>>;
|
|
4280
4289
|
}
|
|
4281
4290
|
|
|
@@ -4309,7 +4318,10 @@ declare class SearchClient$e {
|
|
|
4309
4318
|
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4310
4319
|
*/
|
|
4311
4320
|
users(query: string): Promise<Paginated<UserShort>>;
|
|
4312
|
-
/**
|
|
4321
|
+
/**
|
|
4322
|
+
* Search hashtags.
|
|
4323
|
+
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4324
|
+
*/
|
|
4313
4325
|
hashtags(query: string): Promise<Paginated<Hashtag>>;
|
|
4314
4326
|
/**
|
|
4315
4327
|
* Search places/locations.
|
|
@@ -4326,7 +4338,10 @@ declare class SearchClient$e {
|
|
|
4326
4338
|
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4327
4339
|
*/
|
|
4328
4340
|
music(query: string): Promise<Paginated<Audio>>;
|
|
4329
|
-
/**
|
|
4341
|
+
/**
|
|
4342
|
+
* Get blended "top" results (users, hashtags, and places).
|
|
4343
|
+
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4344
|
+
*/
|
|
4330
4345
|
top(query: string): Promise<SearchTopResponse>;
|
|
4331
4346
|
/**
|
|
4332
4347
|
* Get typeahead/autocomplete suggestions (mixed entity types).
|
|
@@ -4346,7 +4361,10 @@ declare class SearchClient$e {
|
|
|
4346
4361
|
declare class HashtagsClient$1 {
|
|
4347
4362
|
private readonly client;
|
|
4348
4363
|
constructor(client: BaseClient);
|
|
4349
|
-
/**
|
|
4364
|
+
/**
|
|
4365
|
+
* Get a hashtag's info (media count, cover).
|
|
4366
|
+
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4367
|
+
*/
|
|
4350
4368
|
get(tag: string): Promise<Hashtag>;
|
|
4351
4369
|
/**
|
|
4352
4370
|
* Get the top/popular media for a hashtag.
|
|
@@ -4356,7 +4374,10 @@ declare class HashtagsClient$1 {
|
|
|
4356
4374
|
amount?: number;
|
|
4357
4375
|
cursor?: string;
|
|
4358
4376
|
}): Promise<Paginated<Media>>;
|
|
4359
|
-
/**
|
|
4377
|
+
/**
|
|
4378
|
+
* Get the most recent media for a hashtag.
|
|
4379
|
+
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4380
|
+
*/
|
|
4360
4381
|
recent(tag: string, options?: {
|
|
4361
4382
|
amount?: number;
|
|
4362
4383
|
cursor?: string;
|
package/dist/index.js
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.40.
|
|
12
|
+
var SDK_VERSION = "0.40.1";
|
|
13
13
|
|
|
14
14
|
// src/internal/exceptions.ts
|
|
15
15
|
var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
|
|
@@ -4302,7 +4302,10 @@ var UsersClient4 = class {
|
|
|
4302
4302
|
async about(username) {
|
|
4303
4303
|
return this.client.request(`/v1/instagram/users/${username}/about`);
|
|
4304
4304
|
}
|
|
4305
|
-
/**
|
|
4305
|
+
/**
|
|
4306
|
+
* Get accounts related/suggested for a user.
|
|
4307
|
+
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4308
|
+
*/
|
|
4306
4309
|
async related(username) {
|
|
4307
4310
|
return this.client.request(`/v1/instagram/users/${username}/related`);
|
|
4308
4311
|
}
|
|
@@ -4413,7 +4416,10 @@ var MediaClient = class {
|
|
|
4413
4416
|
async get(code) {
|
|
4414
4417
|
return this.client.request(`/v1/instagram/media/${code}`);
|
|
4415
4418
|
}
|
|
4416
|
-
/**
|
|
4419
|
+
/**
|
|
4420
|
+
* Get oEmbed metadata for a media permalink.
|
|
4421
|
+
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4422
|
+
*/
|
|
4417
4423
|
async oembed(code) {
|
|
4418
4424
|
return this.client.request(`/v1/instagram/media/${code}/oembed`);
|
|
4419
4425
|
}
|
|
@@ -4440,7 +4446,10 @@ var MediaClient = class {
|
|
|
4440
4446
|
{ params: { amount: options.amount, cursor: options.cursor } }
|
|
4441
4447
|
);
|
|
4442
4448
|
}
|
|
4443
|
-
/**
|
|
4449
|
+
/**
|
|
4450
|
+
* Get the users who liked a comment.
|
|
4451
|
+
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4452
|
+
*/
|
|
4444
4453
|
async commentLikers(code, commentId) {
|
|
4445
4454
|
return this.client.request(
|
|
4446
4455
|
`/v1/instagram/media/${code}/comments/${commentId}/likers`
|
|
@@ -4463,7 +4472,10 @@ var SearchClient4 = class {
|
|
|
4463
4472
|
params: { query }
|
|
4464
4473
|
});
|
|
4465
4474
|
}
|
|
4466
|
-
/**
|
|
4475
|
+
/**
|
|
4476
|
+
* Search hashtags.
|
|
4477
|
+
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4478
|
+
*/
|
|
4467
4479
|
async hashtags(query) {
|
|
4468
4480
|
return this.client.request("/v1/instagram/search/hashtags", {
|
|
4469
4481
|
params: { query }
|
|
@@ -4496,7 +4508,10 @@ var SearchClient4 = class {
|
|
|
4496
4508
|
params: { query }
|
|
4497
4509
|
});
|
|
4498
4510
|
}
|
|
4499
|
-
/**
|
|
4511
|
+
/**
|
|
4512
|
+
* Get blended "top" results (users, hashtags, and places).
|
|
4513
|
+
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4514
|
+
*/
|
|
4500
4515
|
async top(query) {
|
|
4501
4516
|
return this.client.request("/v1/instagram/search/top", {
|
|
4502
4517
|
params: { query }
|
|
@@ -4524,7 +4539,10 @@ var HashtagsClient = class {
|
|
|
4524
4539
|
constructor(client) {
|
|
4525
4540
|
this.client = client;
|
|
4526
4541
|
}
|
|
4527
|
-
/**
|
|
4542
|
+
/**
|
|
4543
|
+
* Get a hashtag's info (media count, cover).
|
|
4544
|
+
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4545
|
+
*/
|
|
4528
4546
|
async get(tag) {
|
|
4529
4547
|
return this.client.request(`/v1/instagram/hashtags/${tag}`);
|
|
4530
4548
|
}
|
|
@@ -4535,7 +4553,10 @@ var HashtagsClient = class {
|
|
|
4535
4553
|
async top(tag, options = {}) {
|
|
4536
4554
|
return mediaFeed(this.client, `/v1/instagram/hashtags/${tag}/top`, options);
|
|
4537
4555
|
}
|
|
4538
|
-
/**
|
|
4556
|
+
/**
|
|
4557
|
+
* Get the most recent media for a hashtag.
|
|
4558
|
+
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4559
|
+
*/
|
|
4539
4560
|
async recent(tag, options = {}) {
|
|
4540
4561
|
return mediaFeed(this.client, `/v1/instagram/hashtags/${tag}/recent`, options);
|
|
4541
4562
|
}
|