scrapebadger 0.76.1 → 0.76.3
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 +2 -8
- package/dist/{index-CQ1vFI8s.d.cts → index-D029O2qo.d.cts} +18 -2
- package/dist/{index-CQ1vFI8s.d.ts → index-D029O2qo.d.ts} +18 -2
- package/dist/index.cjs +56 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +35 -16
- package/dist/index.d.ts +35 -16
- package/dist/index.mjs +56 -9
- package/dist/index.mjs.map +1 -1
- package/dist/twitter/index.cjs +32 -2
- package/dist/twitter/index.cjs.map +1 -1
- package/dist/twitter/index.d.cts +1 -1
- package/dist/twitter/index.d.ts +1 -1
- package/dist/twitter/index.mjs +32 -2
- package/dist/twitter/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseClient, T as TwitterClient, S as ScrapeBadgerConfig } from './index-
|
|
2
|
-
export { f as AccountRestrictedError, a8 as ApiResponse, a4 as Article, A as AuthenticationError, ao as BillingLog, ap as BillingLogList, h as BlockKind, c as BlockedError, i as BlockingCaptcha, a7 as Broadcast, o as CommunitiesClient, _ as Community, Y as CommunityBanner, $ as CommunityMember, a5 as CommunityNote, Z as CommunityRule, w as CommunityTweetType, C as ConflictError, aq as ConnectOptions, ag as ConnectedEvent, ad as CreateMonitorParams, am as DeliveryLog, an as DeliveryLogList, aj as ErrorEvent, at as FilterRuleCreate, ay as FilterRuleDeliveryLog, az as FilterRuleDeliveryLogListResponse, aw as FilterRuleListResponse, av as FilterRulePricingTier, aA as FilterRulePricingTiersResponse, as as FilterRuleResponse, ar as FilterRuleStatus, au as FilterRuleUpdate, ax as FilterRuleValidateResponse, G as GeoClient, q as GeoSearchOptions, H as Hashtag, g as IPNotAllowedError, I as InsufficientCreditsError, l as IteratorOptions, X as List, a9 as ListResponse, L as ListsClient, a1 as Location, M as Media, aa as MonitorStatus, N as NotFoundError, j as PaginatedResponse, k as PaginationOptions, P as PermissionDeniedError, ah as PingEvent, a3 as Place, a2 as PlaceTrends, y as Poll, x as PollOption, Q as QueryType, b as RateLimitError, R as ResolvedConfig, a as ScrapeBadgerError, d as ServerError, a6 as Space, t as SpacesClient, r as StreamClient, s as StreamEmitter, ak as StreamEvent, al as StreamEventType, ab as StreamMonitor, ac as StreamMonitorList, af as StreamTweet, e as TimeoutError, a0 as Trend, u as TrendCategory, p as TrendsClient, F as Tweet, ai as TweetEvent, E as TweetPlace, n as TweetsClient, ae as UpdateMonitorParams, z as Url, J as User, K as UserAbout, O as UserIds, D as UserMention, U as UsersClient, V as ValidationError, W as WebSocketStreamError, m as collectAll, v as verifyWebhookSignature } from './index-
|
|
1
|
+
import { B as BaseClient, T as TwitterClient, S as ScrapeBadgerConfig } from './index-D029O2qo.cjs';
|
|
2
|
+
export { f as AccountRestrictedError, a8 as ApiResponse, a4 as Article, A as AuthenticationError, ao as BillingLog, ap as BillingLogList, h as BlockKind, c as BlockedError, i as BlockingCaptcha, a7 as Broadcast, o as CommunitiesClient, _ as Community, Y as CommunityBanner, $ as CommunityMember, a5 as CommunityNote, Z as CommunityRule, w as CommunityTweetType, C as ConflictError, aq as ConnectOptions, ag as ConnectedEvent, ad as CreateMonitorParams, am as DeliveryLog, an as DeliveryLogList, aj as ErrorEvent, at as FilterRuleCreate, ay as FilterRuleDeliveryLog, az as FilterRuleDeliveryLogListResponse, aw as FilterRuleListResponse, av as FilterRulePricingTier, aA as FilterRulePricingTiersResponse, as as FilterRuleResponse, ar as FilterRuleStatus, au as FilterRuleUpdate, ax as FilterRuleValidateResponse, G as GeoClient, q as GeoSearchOptions, H as Hashtag, g as IPNotAllowedError, I as InsufficientCreditsError, l as IteratorOptions, X as List, a9 as ListResponse, L as ListsClient, a1 as Location, M as Media, aa as MonitorStatus, N as NotFoundError, j as PaginatedResponse, k as PaginationOptions, P as PermissionDeniedError, ah as PingEvent, a3 as Place, a2 as PlaceTrends, y as Poll, x as PollOption, Q as QueryType, b as RateLimitError, R as ResolvedConfig, a as ScrapeBadgerError, d as ServerError, a6 as Space, t as SpacesClient, r as StreamClient, s as StreamEmitter, ak as StreamEvent, al as StreamEventType, ab as StreamMonitor, ac as StreamMonitorList, af as StreamTweet, e as TimeoutError, a0 as Trend, u as TrendCategory, p as TrendsClient, F as Tweet, ai as TweetEvent, E as TweetPlace, n as TweetsClient, ae as UpdateMonitorParams, z as Url, J as User, K as UserAbout, O as UserIds, D as UserMention, U as UsersClient, V as ValidationError, W as WebSocketStreamError, m as collectAll, v as verifyWebhookSignature } from './index-D029O2qo.cjs';
|
|
3
3
|
import 'node:events';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1200,7 +1200,10 @@ interface GoogleSearchParams {
|
|
|
1200
1200
|
tbm?: string;
|
|
1201
1201
|
/** Google result filter: 14 web, 18 forums. Other verticals require output=html. */
|
|
1202
1202
|
udm?: string;
|
|
1203
|
-
/**
|
|
1203
|
+
/**
|
|
1204
|
+
* No effect: ScrapeBadger no longer caches responses, so every call is a
|
|
1205
|
+
* fresh Google fetch. Kept for compatibility.
|
|
1206
|
+
*/
|
|
1204
1207
|
no_cache?: boolean;
|
|
1205
1208
|
/** Site restriction mode: i includes, e excludes as_sitesearch. */
|
|
1206
1209
|
as_dt?: string;
|
|
@@ -5567,7 +5570,7 @@ declare class AccountClient {
|
|
|
5567
5570
|
/**
|
|
5568
5571
|
* TypeScript types for the agent platform endpoints.
|
|
5569
5572
|
*
|
|
5570
|
-
* Quote, feedback
|
|
5573
|
+
* Quote, feedback and async-request polling — the
|
|
5571
5574
|
* account-level helpers an agent uses around the scraper APIs. None of these
|
|
5572
5575
|
* calls is ever billed.
|
|
5573
5576
|
*/
|
|
@@ -5681,7 +5684,10 @@ interface AsyncRequest<T = unknown> {
|
|
|
5681
5684
|
status: number;
|
|
5682
5685
|
/** Suggested wait before the next poll (running only). */
|
|
5683
5686
|
retryAfterSeconds: number | null;
|
|
5684
|
-
/**
|
|
5687
|
+
/**
|
|
5688
|
+
* @deprecated Always `null`: the API stopped sending `X-Result-ID` (and
|
|
5689
|
+
* storing results for re-reads) on 2026-11-09.
|
|
5690
|
+
*/
|
|
5685
5691
|
resultId: string | null;
|
|
5686
5692
|
/** `X-Credits-Used` of the finished call. */
|
|
5687
5693
|
creditsUsed: number | null;
|
|
@@ -5746,8 +5752,9 @@ interface AgentTrial {
|
|
|
5746
5752
|
* Agent platform API clients.
|
|
5747
5753
|
*
|
|
5748
5754
|
* Free helpers around the scraper APIs: quote a call before making it, report
|
|
5749
|
-
* a bug,
|
|
5750
|
-
* `
|
|
5755
|
+
* a bug, and poll a call made with `Prefer: respond-async`. None of these calls
|
|
5756
|
+
* is ever billed. (`results.get` is deprecated: the API stopped storing results
|
|
5757
|
+
* on 2026-11-09.)
|
|
5751
5758
|
*/
|
|
5752
5759
|
|
|
5753
5760
|
/**
|
|
@@ -5797,22 +5804,31 @@ declare class AgentClient$1 {
|
|
|
5797
5804
|
reportBug(summary: string, options?: Omit<FeedbackOptions, "type">): Promise<FeedbackReceipt>;
|
|
5798
5805
|
}
|
|
5799
5806
|
/**
|
|
5800
|
-
*
|
|
5807
|
+
* Deprecated client for the removed `GET /v1/results/{id}` re-read.
|
|
5801
5808
|
*
|
|
5802
|
-
*
|
|
5803
|
-
*
|
|
5804
|
-
*
|
|
5809
|
+
* ScrapeBadger no longer stores results: responses carry no `X-Result-ID` and
|
|
5810
|
+
* `GET /v1/results/{id}` answers 410 Gone since 2026-11-09. To get a different
|
|
5811
|
+
* shape of a result, re-run the call with the `jq`, `fields` or `max_items`
|
|
5812
|
+
* view parameters (billed as a normal call).
|
|
5813
|
+
*
|
|
5814
|
+
* @deprecated The API no longer stores results; this client will be removed.
|
|
5805
5815
|
*/
|
|
5806
5816
|
declare class ResultsClient {
|
|
5807
5817
|
private readonly client;
|
|
5808
5818
|
constructor(client: BaseClient);
|
|
5809
5819
|
/**
|
|
5810
|
-
*
|
|
5820
|
+
* Deprecated: the API no longer stores results, so there is nothing to re-read.
|
|
5821
|
+
*
|
|
5822
|
+
* `GET /v1/results/{id}` was removed from the API on 2026-11-09 and answers
|
|
5823
|
+
* 410 Gone, which this method throws as `ScrapeBadgerError`. Re-run the
|
|
5824
|
+
* original call with the `jq`, `fields` or `max_items` view parameters instead
|
|
5825
|
+
* (billed as a normal call). Kept only so existing code fails with a clear
|
|
5826
|
+
* error; it will be removed in a future release.
|
|
5811
5827
|
*
|
|
5812
|
-
* @
|
|
5828
|
+
* @deprecated The API no longer stores results; re-run the call with view params.
|
|
5829
|
+
* @param resultId - ID of a stored result (no longer issued by the API).
|
|
5813
5830
|
* @param options - `jq`, `fields`, `maxItems`, `summary` view params.
|
|
5814
|
-
* @
|
|
5815
|
-
* @throws NotFoundError - Unknown result, or it expired (~15 minutes).
|
|
5831
|
+
* @throws ScrapeBadgerError - Always (410 Gone `results_removed`) against the current API.
|
|
5816
5832
|
*/
|
|
5817
5833
|
get<T = unknown>(resultId: string, options?: ResultViewOptions): Promise<T>;
|
|
5818
5834
|
}
|
|
@@ -20332,7 +20348,10 @@ declare class ScrapeBadger {
|
|
|
20332
20348
|
readonly account: AccountClient;
|
|
20333
20349
|
/** Quote a call before making it, and report bugs or send feedback. Free. */
|
|
20334
20350
|
readonly agent: AgentClient$1;
|
|
20335
|
-
/**
|
|
20351
|
+
/**
|
|
20352
|
+
* @deprecated The API no longer stores results (`GET /v1/results/{id}` answers
|
|
20353
|
+
* 410 Gone since 2026-11-09); see `ResultsClient.get`.
|
|
20354
|
+
*/
|
|
20336
20355
|
readonly results: ResultsClient;
|
|
20337
20356
|
/** Poll a call made with `Prefer: respond-async`. Free. */
|
|
20338
20357
|
readonly requests: RequestsClient;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseClient, T as TwitterClient, S as ScrapeBadgerConfig } from './index-
|
|
2
|
-
export { f as AccountRestrictedError, a8 as ApiResponse, a4 as Article, A as AuthenticationError, ao as BillingLog, ap as BillingLogList, h as BlockKind, c as BlockedError, i as BlockingCaptcha, a7 as Broadcast, o as CommunitiesClient, _ as Community, Y as CommunityBanner, $ as CommunityMember, a5 as CommunityNote, Z as CommunityRule, w as CommunityTweetType, C as ConflictError, aq as ConnectOptions, ag as ConnectedEvent, ad as CreateMonitorParams, am as DeliveryLog, an as DeliveryLogList, aj as ErrorEvent, at as FilterRuleCreate, ay as FilterRuleDeliveryLog, az as FilterRuleDeliveryLogListResponse, aw as FilterRuleListResponse, av as FilterRulePricingTier, aA as FilterRulePricingTiersResponse, as as FilterRuleResponse, ar as FilterRuleStatus, au as FilterRuleUpdate, ax as FilterRuleValidateResponse, G as GeoClient, q as GeoSearchOptions, H as Hashtag, g as IPNotAllowedError, I as InsufficientCreditsError, l as IteratorOptions, X as List, a9 as ListResponse, L as ListsClient, a1 as Location, M as Media, aa as MonitorStatus, N as NotFoundError, j as PaginatedResponse, k as PaginationOptions, P as PermissionDeniedError, ah as PingEvent, a3 as Place, a2 as PlaceTrends, y as Poll, x as PollOption, Q as QueryType, b as RateLimitError, R as ResolvedConfig, a as ScrapeBadgerError, d as ServerError, a6 as Space, t as SpacesClient, r as StreamClient, s as StreamEmitter, ak as StreamEvent, al as StreamEventType, ab as StreamMonitor, ac as StreamMonitorList, af as StreamTweet, e as TimeoutError, a0 as Trend, u as TrendCategory, p as TrendsClient, F as Tweet, ai as TweetEvent, E as TweetPlace, n as TweetsClient, ae as UpdateMonitorParams, z as Url, J as User, K as UserAbout, O as UserIds, D as UserMention, U as UsersClient, V as ValidationError, W as WebSocketStreamError, m as collectAll, v as verifyWebhookSignature } from './index-
|
|
1
|
+
import { B as BaseClient, T as TwitterClient, S as ScrapeBadgerConfig } from './index-D029O2qo.js';
|
|
2
|
+
export { f as AccountRestrictedError, a8 as ApiResponse, a4 as Article, A as AuthenticationError, ao as BillingLog, ap as BillingLogList, h as BlockKind, c as BlockedError, i as BlockingCaptcha, a7 as Broadcast, o as CommunitiesClient, _ as Community, Y as CommunityBanner, $ as CommunityMember, a5 as CommunityNote, Z as CommunityRule, w as CommunityTweetType, C as ConflictError, aq as ConnectOptions, ag as ConnectedEvent, ad as CreateMonitorParams, am as DeliveryLog, an as DeliveryLogList, aj as ErrorEvent, at as FilterRuleCreate, ay as FilterRuleDeliveryLog, az as FilterRuleDeliveryLogListResponse, aw as FilterRuleListResponse, av as FilterRulePricingTier, aA as FilterRulePricingTiersResponse, as as FilterRuleResponse, ar as FilterRuleStatus, au as FilterRuleUpdate, ax as FilterRuleValidateResponse, G as GeoClient, q as GeoSearchOptions, H as Hashtag, g as IPNotAllowedError, I as InsufficientCreditsError, l as IteratorOptions, X as List, a9 as ListResponse, L as ListsClient, a1 as Location, M as Media, aa as MonitorStatus, N as NotFoundError, j as PaginatedResponse, k as PaginationOptions, P as PermissionDeniedError, ah as PingEvent, a3 as Place, a2 as PlaceTrends, y as Poll, x as PollOption, Q as QueryType, b as RateLimitError, R as ResolvedConfig, a as ScrapeBadgerError, d as ServerError, a6 as Space, t as SpacesClient, r as StreamClient, s as StreamEmitter, ak as StreamEvent, al as StreamEventType, ab as StreamMonitor, ac as StreamMonitorList, af as StreamTweet, e as TimeoutError, a0 as Trend, u as TrendCategory, p as TrendsClient, F as Tweet, ai as TweetEvent, E as TweetPlace, n as TweetsClient, ae as UpdateMonitorParams, z as Url, J as User, K as UserAbout, O as UserIds, D as UserMention, U as UsersClient, V as ValidationError, W as WebSocketStreamError, m as collectAll, v as verifyWebhookSignature } from './index-D029O2qo.js';
|
|
3
3
|
import 'node:events';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1200,7 +1200,10 @@ interface GoogleSearchParams {
|
|
|
1200
1200
|
tbm?: string;
|
|
1201
1201
|
/** Google result filter: 14 web, 18 forums. Other verticals require output=html. */
|
|
1202
1202
|
udm?: string;
|
|
1203
|
-
/**
|
|
1203
|
+
/**
|
|
1204
|
+
* No effect: ScrapeBadger no longer caches responses, so every call is a
|
|
1205
|
+
* fresh Google fetch. Kept for compatibility.
|
|
1206
|
+
*/
|
|
1204
1207
|
no_cache?: boolean;
|
|
1205
1208
|
/** Site restriction mode: i includes, e excludes as_sitesearch. */
|
|
1206
1209
|
as_dt?: string;
|
|
@@ -5567,7 +5570,7 @@ declare class AccountClient {
|
|
|
5567
5570
|
/**
|
|
5568
5571
|
* TypeScript types for the agent platform endpoints.
|
|
5569
5572
|
*
|
|
5570
|
-
* Quote, feedback
|
|
5573
|
+
* Quote, feedback and async-request polling — the
|
|
5571
5574
|
* account-level helpers an agent uses around the scraper APIs. None of these
|
|
5572
5575
|
* calls is ever billed.
|
|
5573
5576
|
*/
|
|
@@ -5681,7 +5684,10 @@ interface AsyncRequest<T = unknown> {
|
|
|
5681
5684
|
status: number;
|
|
5682
5685
|
/** Suggested wait before the next poll (running only). */
|
|
5683
5686
|
retryAfterSeconds: number | null;
|
|
5684
|
-
/**
|
|
5687
|
+
/**
|
|
5688
|
+
* @deprecated Always `null`: the API stopped sending `X-Result-ID` (and
|
|
5689
|
+
* storing results for re-reads) on 2026-11-09.
|
|
5690
|
+
*/
|
|
5685
5691
|
resultId: string | null;
|
|
5686
5692
|
/** `X-Credits-Used` of the finished call. */
|
|
5687
5693
|
creditsUsed: number | null;
|
|
@@ -5746,8 +5752,9 @@ interface AgentTrial {
|
|
|
5746
5752
|
* Agent platform API clients.
|
|
5747
5753
|
*
|
|
5748
5754
|
* Free helpers around the scraper APIs: quote a call before making it, report
|
|
5749
|
-
* a bug,
|
|
5750
|
-
* `
|
|
5755
|
+
* a bug, and poll a call made with `Prefer: respond-async`. None of these calls
|
|
5756
|
+
* is ever billed. (`results.get` is deprecated: the API stopped storing results
|
|
5757
|
+
* on 2026-11-09.)
|
|
5751
5758
|
*/
|
|
5752
5759
|
|
|
5753
5760
|
/**
|
|
@@ -5797,22 +5804,31 @@ declare class AgentClient$1 {
|
|
|
5797
5804
|
reportBug(summary: string, options?: Omit<FeedbackOptions, "type">): Promise<FeedbackReceipt>;
|
|
5798
5805
|
}
|
|
5799
5806
|
/**
|
|
5800
|
-
*
|
|
5807
|
+
* Deprecated client for the removed `GET /v1/results/{id}` re-read.
|
|
5801
5808
|
*
|
|
5802
|
-
*
|
|
5803
|
-
*
|
|
5804
|
-
*
|
|
5809
|
+
* ScrapeBadger no longer stores results: responses carry no `X-Result-ID` and
|
|
5810
|
+
* `GET /v1/results/{id}` answers 410 Gone since 2026-11-09. To get a different
|
|
5811
|
+
* shape of a result, re-run the call with the `jq`, `fields` or `max_items`
|
|
5812
|
+
* view parameters (billed as a normal call).
|
|
5813
|
+
*
|
|
5814
|
+
* @deprecated The API no longer stores results; this client will be removed.
|
|
5805
5815
|
*/
|
|
5806
5816
|
declare class ResultsClient {
|
|
5807
5817
|
private readonly client;
|
|
5808
5818
|
constructor(client: BaseClient);
|
|
5809
5819
|
/**
|
|
5810
|
-
*
|
|
5820
|
+
* Deprecated: the API no longer stores results, so there is nothing to re-read.
|
|
5821
|
+
*
|
|
5822
|
+
* `GET /v1/results/{id}` was removed from the API on 2026-11-09 and answers
|
|
5823
|
+
* 410 Gone, which this method throws as `ScrapeBadgerError`. Re-run the
|
|
5824
|
+
* original call with the `jq`, `fields` or `max_items` view parameters instead
|
|
5825
|
+
* (billed as a normal call). Kept only so existing code fails with a clear
|
|
5826
|
+
* error; it will be removed in a future release.
|
|
5811
5827
|
*
|
|
5812
|
-
* @
|
|
5828
|
+
* @deprecated The API no longer stores results; re-run the call with view params.
|
|
5829
|
+
* @param resultId - ID of a stored result (no longer issued by the API).
|
|
5813
5830
|
* @param options - `jq`, `fields`, `maxItems`, `summary` view params.
|
|
5814
|
-
* @
|
|
5815
|
-
* @throws NotFoundError - Unknown result, or it expired (~15 minutes).
|
|
5831
|
+
* @throws ScrapeBadgerError - Always (410 Gone `results_removed`) against the current API.
|
|
5816
5832
|
*/
|
|
5817
5833
|
get<T = unknown>(resultId: string, options?: ResultViewOptions): Promise<T>;
|
|
5818
5834
|
}
|
|
@@ -20332,7 +20348,10 @@ declare class ScrapeBadger {
|
|
|
20332
20348
|
readonly account: AccountClient;
|
|
20333
20349
|
/** Quote a call before making it, and report bugs or send feedback. Free. */
|
|
20334
20350
|
readonly agent: AgentClient$1;
|
|
20335
|
-
/**
|
|
20351
|
+
/**
|
|
20352
|
+
* @deprecated The API no longer stores results (`GET /v1/results/{id}` answers
|
|
20353
|
+
* 410 Gone since 2026-11-09); see `ResultsClient.get`.
|
|
20354
|
+
*/
|
|
20336
20355
|
readonly results: ResultsClient;
|
|
20337
20356
|
/** Poll a call made with `Prefer: respond-async`. Free. */
|
|
20338
20357
|
readonly requests: RequestsClient;
|
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.76.
|
|
6
|
+
var SDK_VERSION = "0.76.3";
|
|
7
7
|
|
|
8
8
|
// src/internal/exceptions.ts
|
|
9
9
|
var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
|
|
@@ -1866,6 +1866,8 @@ function parseEvent(raw) {
|
|
|
1866
1866
|
};
|
|
1867
1867
|
}
|
|
1868
1868
|
}
|
|
1869
|
+
var deliveryLogsWarned = false;
|
|
1870
|
+
var filterRuleLogsWarned = false;
|
|
1869
1871
|
var StreamClient = class {
|
|
1870
1872
|
client;
|
|
1871
1873
|
constructor(client) {
|
|
@@ -2021,12 +2023,26 @@ var StreamClient = class {
|
|
|
2021
2023
|
// Delivery and Billing Logs
|
|
2022
2024
|
// ===========================================================================
|
|
2023
2025
|
/**
|
|
2024
|
-
*
|
|
2026
|
+
* Deprecated: ScrapeBadger no longer stores delivered tweets.
|
|
2025
2027
|
*
|
|
2028
|
+
* `GET /v1/twitter/stream/logs` was removed from the API on 2026-11-09 and
|
|
2029
|
+
* answers 410 Gone (`delivery_logs_removed`), which this method throws as
|
|
2030
|
+
* `ScrapeBadgerError`. Each tweet is delivered to your webhook (or WebSocket)
|
|
2031
|
+
* only; keep your own log there. Kept only so existing code fails with a clear
|
|
2032
|
+
* error; it will be removed in a future release.
|
|
2033
|
+
*
|
|
2034
|
+
* @deprecated Delivered tweets are no longer stored; keep your own log at your webhook receiver.
|
|
2026
2035
|
* @param options - Filter and pagination options.
|
|
2027
2036
|
* @returns DeliveryLogList with pagination metadata.
|
|
2037
|
+
* @throws ScrapeBadgerError - Always (410 Gone `delivery_logs_removed`) against the current API.
|
|
2028
2038
|
*/
|
|
2029
2039
|
async listDeliveryLogs(options) {
|
|
2040
|
+
if (!deliveryLogsWarned) {
|
|
2041
|
+
deliveryLogsWarned = true;
|
|
2042
|
+
console.warn(
|
|
2043
|
+
"[scrapebadger] listDeliveryLogs() is deprecated: ScrapeBadger stopped storing delivered tweets on 2026-11-09 and GET /v1/twitter/stream/logs answers 410 Gone. Keep your own log at your webhook receiver."
|
|
2044
|
+
);
|
|
2045
|
+
}
|
|
2030
2046
|
const params = {
|
|
2031
2047
|
page: options?.page ?? 1,
|
|
2032
2048
|
page_size: options?.pageSize ?? 20,
|
|
@@ -2203,8 +2219,16 @@ var StreamClient = class {
|
|
|
2203
2219
|
);
|
|
2204
2220
|
}
|
|
2205
2221
|
/**
|
|
2206
|
-
*
|
|
2222
|
+
* Deprecated: ScrapeBadger no longer stores delivered tweets.
|
|
2207
2223
|
*
|
|
2224
|
+
* `GET /v1/twitter/stream/filter-rules/{id}/logs` was removed from the API on
|
|
2225
|
+
* 2026-11-09 and answers 410 Gone (`delivery_logs_removed`), which this method
|
|
2226
|
+
* throws as `ScrapeBadgerError`. Each tweet is delivered to your webhook only;
|
|
2227
|
+
* keep your own log there. Kept only so existing code fails with a clear error;
|
|
2228
|
+
* it will be removed in a future release.
|
|
2229
|
+
*
|
|
2230
|
+
* @deprecated Delivered tweets are no longer stored; keep your own log at your webhook receiver.
|
|
2231
|
+
* @throws ScrapeBadgerError - Always (410 Gone `delivery_logs_removed`) against the current API.
|
|
2208
2232
|
* @param ruleId - UUID of the filter rule.
|
|
2209
2233
|
* @param options - Filter and pagination options.
|
|
2210
2234
|
* @returns FilterRuleDeliveryLogListResponse with pagination metadata.
|
|
@@ -2218,6 +2242,12 @@ var StreamClient = class {
|
|
|
2218
2242
|
* ```
|
|
2219
2243
|
*/
|
|
2220
2244
|
async listFilterRuleLogs(ruleId, options) {
|
|
2245
|
+
if (!filterRuleLogsWarned) {
|
|
2246
|
+
filterRuleLogsWarned = true;
|
|
2247
|
+
console.warn(
|
|
2248
|
+
"[scrapebadger] listFilterRuleLogs() is deprecated: ScrapeBadger stopped storing delivered tweets on 2026-11-09 and GET /v1/twitter/stream/filter-rules/{id}/logs answers 410 Gone. Keep your own log at your webhook receiver."
|
|
2249
|
+
);
|
|
2250
|
+
}
|
|
2221
2251
|
const params = {
|
|
2222
2252
|
limit: options?.limit ?? 20,
|
|
2223
2253
|
offset: options?.offset ?? 0,
|
|
@@ -5060,19 +5090,32 @@ var AgentClient = class {
|
|
|
5060
5090
|
return this.feedback(summary, { ...options, type: "bug" });
|
|
5061
5091
|
}
|
|
5062
5092
|
};
|
|
5093
|
+
var resultsGetWarned = false;
|
|
5063
5094
|
var ResultsClient = class {
|
|
5064
5095
|
constructor(client) {
|
|
5065
5096
|
this.client = client;
|
|
5066
5097
|
}
|
|
5067
5098
|
/**
|
|
5068
|
-
*
|
|
5099
|
+
* Deprecated: the API no longer stores results, so there is nothing to re-read.
|
|
5069
5100
|
*
|
|
5070
|
-
*
|
|
5101
|
+
* `GET /v1/results/{id}` was removed from the API on 2026-11-09 and answers
|
|
5102
|
+
* 410 Gone, which this method throws as `ScrapeBadgerError`. Re-run the
|
|
5103
|
+
* original call with the `jq`, `fields` or `max_items` view parameters instead
|
|
5104
|
+
* (billed as a normal call). Kept only so existing code fails with a clear
|
|
5105
|
+
* error; it will be removed in a future release.
|
|
5106
|
+
*
|
|
5107
|
+
* @deprecated The API no longer stores results; re-run the call with view params.
|
|
5108
|
+
* @param resultId - ID of a stored result (no longer issued by the API).
|
|
5071
5109
|
* @param options - `jq`, `fields`, `maxItems`, `summary` view params.
|
|
5072
|
-
* @
|
|
5073
|
-
* @throws NotFoundError - Unknown result, or it expired (~15 minutes).
|
|
5110
|
+
* @throws ScrapeBadgerError - Always (410 Gone `results_removed`) against the current API.
|
|
5074
5111
|
*/
|
|
5075
5112
|
async get(resultId, options = {}) {
|
|
5113
|
+
if (!resultsGetWarned) {
|
|
5114
|
+
resultsGetWarned = true;
|
|
5115
|
+
console.warn(
|
|
5116
|
+
"[scrapebadger] results.get() is deprecated: ScrapeBadger stopped storing results on 2026-11-09 and GET /v1/results/{id} answers 410 Gone. Re-run the call with jq/fields/max_items view parameters instead."
|
|
5117
|
+
);
|
|
5118
|
+
}
|
|
5076
5119
|
const { jq, fields, maxItems, summary } = options;
|
|
5077
5120
|
return this.client.request(`/v1/results/${encodeURIComponent(resultId)}`, {
|
|
5078
5121
|
params: {
|
|
@@ -5108,7 +5151,8 @@ var RequestsClient = class {
|
|
|
5108
5151
|
running,
|
|
5109
5152
|
status: status ?? 200,
|
|
5110
5153
|
retryAfterSeconds: retryAfter ?? null,
|
|
5111
|
-
resultId:
|
|
5154
|
+
resultId: null,
|
|
5155
|
+
// deprecated: the API no longer sends X-Result-ID
|
|
5112
5156
|
creditsUsed: credits && /^\d+$/.test(credits) ? Number(credits) : null,
|
|
5113
5157
|
data
|
|
5114
5158
|
};
|
|
@@ -10706,7 +10750,10 @@ var ScrapeBadger = class {
|
|
|
10706
10750
|
account;
|
|
10707
10751
|
/** Quote a call before making it, and report bugs or send feedback. Free. */
|
|
10708
10752
|
agent;
|
|
10709
|
-
/**
|
|
10753
|
+
/**
|
|
10754
|
+
* @deprecated The API no longer stores results (`GET /v1/results/{id}` answers
|
|
10755
|
+
* 410 Gone since 2026-11-09); see `ResultsClient.get`.
|
|
10756
|
+
*/
|
|
10710
10757
|
results;
|
|
10711
10758
|
/** Poll a call made with `Prefer: respond-async`. Free. */
|
|
10712
10759
|
requests;
|