x-twitter-scraper 0.20.0 → 0.22.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/CHANGELOG.md +65 -0
- package/README.md +121 -122
- package/client.d.mts +9 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +9 -3
- package/client.d.ts.map +1 -1
- package/client.js +2 -2
- package/client.js.map +1 -1
- package/client.mjs +2 -2
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/events.d.mts +8 -0
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +8 -0
- package/resources/events.d.ts.map +1 -1
- package/resources/extractions.d.mts +105 -5
- package/resources/extractions.d.mts.map +1 -1
- package/resources/extractions.d.ts +105 -5
- package/resources/extractions.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/monitors/index.d.mts +1 -1
- package/resources/monitors/index.d.mts.map +1 -1
- package/resources/monitors/index.d.ts +1 -1
- package/resources/monitors/index.d.ts.map +1 -1
- package/resources/monitors/index.js.map +1 -1
- package/resources/monitors/index.mjs.map +1 -1
- package/resources/monitors/monitors.d.mts +38 -1
- package/resources/monitors/monitors.d.mts.map +1 -1
- package/resources/monitors/monitors.d.ts +38 -1
- package/resources/monitors/monitors.d.ts.map +1 -1
- package/resources/monitors/monitors.js +18 -0
- package/resources/monitors/monitors.js.map +1 -1
- package/resources/monitors/monitors.mjs +18 -0
- package/resources/monitors/monitors.mjs.map +1 -1
- package/resources/monitors/posts.d.mts +27 -0
- package/resources/monitors/posts.d.mts.map +1 -1
- package/resources/monitors/posts.d.ts +27 -0
- package/resources/monitors/posts.d.ts.map +1 -1
- package/resources/shared.d.mts +192 -5
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +192 -5
- package/resources/shared.d.ts.map +1 -1
- package/resources/x/account-connection-attempts.d.mts +4 -0
- package/resources/x/account-connection-attempts.d.mts.map +1 -1
- package/resources/x/account-connection-attempts.d.ts +4 -0
- package/resources/x/account-connection-attempts.d.ts.map +1 -1
- package/resources/x/account-connection-links.d.mts +159 -0
- package/resources/x/account-connection-links.d.mts.map +1 -0
- package/resources/x/account-connection-links.d.ts +159 -0
- package/resources/x/account-connection-links.d.ts.map +1 -0
- package/resources/x/account-connection-links.js +82 -0
- package/resources/x/account-connection-links.js.map +1 -0
- package/resources/x/account-connection-links.mjs +78 -0
- package/resources/x/account-connection-links.mjs.map +1 -0
- package/resources/x/accounts.d.mts +13 -9
- package/resources/x/accounts.d.mts.map +1 -1
- package/resources/x/accounts.d.ts +13 -9
- package/resources/x/accounts.d.ts.map +1 -1
- package/resources/x/analysis.d.mts +540 -36
- package/resources/x/analysis.d.mts.map +1 -1
- package/resources/x/analysis.d.ts +540 -36
- package/resources/x/analysis.d.ts.map +1 -1
- package/resources/x/bookmarks.d.mts +5 -0
- package/resources/x/bookmarks.d.mts.map +1 -1
- package/resources/x/bookmarks.d.ts +5 -0
- package/resources/x/bookmarks.d.ts.map +1 -1
- package/resources/x/communities/communities.d.mts +2 -2
- package/resources/x/communities/communities.d.mts.map +1 -1
- package/resources/x/communities/communities.d.ts +2 -2
- package/resources/x/communities/communities.d.ts.map +1 -1
- package/resources/x/communities/communities.js.map +1 -1
- package/resources/x/communities/communities.mjs.map +1 -1
- package/resources/x/communities/join.d.mts +2 -2
- package/resources/x/communities/join.d.mts.map +1 -1
- package/resources/x/communities/join.d.ts +2 -2
- package/resources/x/communities/join.d.ts.map +1 -1
- package/resources/x/dm.d.mts +2 -2
- package/resources/x/dm.d.mts.map +1 -1
- package/resources/x/dm.d.ts +2 -2
- package/resources/x/dm.d.ts.map +1 -1
- package/resources/x/index.d.mts +3 -2
- package/resources/x/index.d.mts.map +1 -1
- package/resources/x/index.d.ts +3 -2
- package/resources/x/index.d.ts.map +1 -1
- package/resources/x/index.js +3 -1
- package/resources/x/index.js.map +1 -1
- package/resources/x/index.mjs +1 -0
- package/resources/x/index.mjs.map +1 -1
- package/resources/x/media.d.mts +48 -1
- package/resources/x/media.d.mts.map +1 -1
- package/resources/x/media.d.ts +48 -1
- package/resources/x/media.d.ts.map +1 -1
- package/resources/x/media.js.map +1 -1
- package/resources/x/media.mjs.map +1 -1
- package/resources/x/profile.d.mts +3 -3
- package/resources/x/profile.d.mts.map +1 -1
- package/resources/x/profile.d.ts +3 -3
- package/resources/x/profile.d.ts.map +1 -1
- package/resources/x/sports.d.mts +19 -1
- package/resources/x/sports.d.mts.map +1 -1
- package/resources/x/sports.d.ts +19 -1
- package/resources/x/sports.d.ts.map +1 -1
- package/resources/x/tweets/bookmark.d.mts +84 -0
- package/resources/x/tweets/bookmark.d.mts.map +1 -0
- package/resources/x/tweets/bookmark.d.ts +84 -0
- package/resources/x/tweets/bookmark.d.ts.map +1 -0
- package/resources/x/tweets/bookmark.js +55 -0
- package/resources/x/tweets/bookmark.js.map +1 -0
- package/resources/x/tweets/bookmark.mjs +51 -0
- package/resources/x/tweets/bookmark.mjs.map +1 -0
- package/resources/x/tweets/index.d.mts +1 -0
- package/resources/x/tweets/index.d.mts.map +1 -1
- package/resources/x/tweets/index.d.ts +1 -0
- package/resources/x/tweets/index.d.ts.map +1 -1
- package/resources/x/tweets/index.js +3 -1
- package/resources/x/tweets/index.js.map +1 -1
- package/resources/x/tweets/index.mjs +1 -0
- package/resources/x/tweets/index.mjs.map +1 -1
- package/resources/x/tweets/like.d.mts +2 -2
- package/resources/x/tweets/like.d.mts.map +1 -1
- package/resources/x/tweets/like.d.ts +2 -2
- package/resources/x/tweets/like.d.ts.map +1 -1
- package/resources/x/tweets/retweet.d.mts +2 -2
- package/resources/x/tweets/retweet.d.mts.map +1 -1
- package/resources/x/tweets/retweet.d.ts +2 -2
- package/resources/x/tweets/retweet.d.ts.map +1 -1
- package/resources/x/tweets/tweets.d.mts +45 -13
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +45 -13
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/tweets/tweets.js +4 -0
- package/resources/x/tweets/tweets.js.map +1 -1
- package/resources/x/tweets/tweets.mjs +4 -0
- package/resources/x/tweets/tweets.mjs.map +1 -1
- package/resources/x/users/block.d.mts +84 -0
- package/resources/x/users/block.d.mts.map +1 -0
- package/resources/x/users/block.d.ts +84 -0
- package/resources/x/users/block.d.ts.map +1 -0
- package/resources/x/users/block.js +55 -0
- package/resources/x/users/block.js.map +1 -0
- package/resources/x/users/block.mjs +51 -0
- package/resources/x/users/block.mjs.map +1 -0
- package/resources/x/users/follow.d.mts +2 -2
- package/resources/x/users/follow.d.mts.map +1 -1
- package/resources/x/users/follow.d.ts +2 -2
- package/resources/x/users/follow.d.ts.map +1 -1
- package/resources/x/users/index.d.mts +3 -1
- package/resources/x/users/index.d.mts.map +1 -1
- package/resources/x/users/index.d.ts +3 -1
- package/resources/x/users/index.d.ts.map +1 -1
- package/resources/x/users/index.js +5 -1
- package/resources/x/users/index.js.map +1 -1
- package/resources/x/users/index.mjs +2 -0
- package/resources/x/users/index.mjs.map +1 -1
- package/resources/x/users/mute.d.mts +84 -0
- package/resources/x/users/mute.d.mts.map +1 -0
- package/resources/x/users/mute.d.ts +84 -0
- package/resources/x/users/mute.d.ts.map +1 -0
- package/resources/x/users/mute.js +55 -0
- package/resources/x/users/mute.js.map +1 -0
- package/resources/x/users/mute.mjs +51 -0
- package/resources/x/users/mute.mjs.map +1 -0
- package/resources/x/users/users.d.mts +359 -9
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts +359 -9
- package/resources/x/users/users.d.ts.map +1 -1
- package/resources/x/users/users.js +27 -1
- package/resources/x/users/users.js.map +1 -1
- package/resources/x/users/users.mjs +27 -1
- package/resources/x/users/users.mjs.map +1 -1
- package/resources/x/write-actions.d.mts +1 -1
- package/resources/x/write-actions.d.mts.map +1 -1
- package/resources/x/write-actions.d.ts +1 -1
- package/resources/x/write-actions.d.ts.map +1 -1
- package/resources/x/x.d.mts +17 -4
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +17 -4
- package/resources/x/x.d.ts.map +1 -1
- package/resources/x/x.js +4 -0
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs +4 -0
- package/resources/x/x.mjs.map +1 -1
- package/src/client.ts +12 -2
- package/src/core/README.md +4 -0
- package/src/internal/README.md +6 -1
- package/src/resources/events.ts +10 -0
- package/src/resources/extractions.ts +125 -0
- package/src/resources/index.ts +2 -0
- package/src/resources/monitors/index.ts +2 -0
- package/src/resources/monitors/monitors.ts +49 -0
- package/src/resources/monitors/posts.ts +32 -0
- package/src/resources/shared.ts +223 -4
- package/src/resources/x/account-connection-attempts.ts +5 -0
- package/src/resources/x/account-connection-links.ts +215 -0
- package/src/resources/x/accounts.ts +15 -14
- package/src/resources/x/analysis.ts +618 -36
- package/src/resources/x/bookmarks.ts +6 -0
- package/src/resources/x/communities/communities.ts +12 -0
- package/src/resources/x/communities/join.ts +12 -0
- package/src/resources/x/dm.ts +12 -0
- package/src/resources/x/index.ts +16 -0
- package/src/resources/x/media.ts +64 -0
- package/src/resources/x/profile.ts +18 -0
- package/src/resources/x/sports.ts +22 -0
- package/src/resources/x/tweets/bookmark.ts +127 -0
- package/src/resources/x/tweets/index.ts +7 -0
- package/src/resources/x/tweets/like.ts +12 -0
- package/src/resources/x/tweets/retweet.ts +12 -0
- package/src/resources/x/tweets/tweets.ts +74 -10
- package/src/resources/x/users/block.ts +119 -0
- package/src/resources/x/users/follow.ts +12 -0
- package/src/resources/x/users/index.ts +20 -0
- package/src/resources/x/users/mute.ts +119 -0
- package/src/resources/x/users/users.ts +470 -7
- package/src/resources/x/write-actions.ts +6 -0
- package/src/resources/x/x.ts +50 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/x/x.ts
CHANGED
|
@@ -9,6 +9,16 @@ import {
|
|
|
9
9
|
AccountConnectionAttemptRetrieveResponse,
|
|
10
10
|
AccountConnectionAttempts,
|
|
11
11
|
} from './account-connection-attempts';
|
|
12
|
+
import * as AccountConnectionLinksAPI from './account-connection-links';
|
|
13
|
+
import {
|
|
14
|
+
AccountConnectionLinkCreateParams,
|
|
15
|
+
AccountConnectionLinkCreateResponse,
|
|
16
|
+
AccountConnectionLinkDeleteResponse,
|
|
17
|
+
AccountConnectionLinkListParams,
|
|
18
|
+
AccountConnectionLinkListResponse,
|
|
19
|
+
AccountConnectionLinks,
|
|
20
|
+
XAccountConnectionLink,
|
|
21
|
+
} from './account-connection-links';
|
|
12
22
|
import * as AccountConnectionChallengesAPI from './account-connection-challenges';
|
|
13
23
|
import {
|
|
14
24
|
AccountConnectionChallengeSubmitParams,
|
|
@@ -151,6 +161,7 @@ import {
|
|
|
151
161
|
FootballPlayerStatsReceiving,
|
|
152
162
|
FootballPlayerXUser,
|
|
153
163
|
FootballPlays,
|
|
164
|
+
FootballPollRanking,
|
|
154
165
|
FootballPropCategory,
|
|
155
166
|
FootballProps,
|
|
156
167
|
FootballQuarter,
|
|
@@ -279,7 +290,13 @@ import {
|
|
|
279
290
|
UserRetrieveBatchResponse,
|
|
280
291
|
UserRetrieveBatchTweetsParams,
|
|
281
292
|
UserRetrieveBatchTweetsResponse,
|
|
293
|
+
UserRetrieveFollowerAuditParams,
|
|
282
294
|
UserRetrieveFollowerIDsParams,
|
|
295
|
+
UserRetrieveFollowerAuditResponse,
|
|
296
|
+
FollowerAudit,
|
|
297
|
+
AuditedFollower,
|
|
298
|
+
FollowerClass,
|
|
299
|
+
FollowerValueCount,
|
|
283
300
|
UserRetrieveFollowerIDsResponse,
|
|
284
301
|
UserRetrieveFollowersParams,
|
|
285
302
|
UserRetrieveFollowersResponse,
|
|
@@ -333,6 +350,8 @@ export class X extends APIResource {
|
|
|
333
350
|
new AccountConnectionChallengesAPI.AccountConnectionChallenges(this._client);
|
|
334
351
|
accountConnectionAttempts: AccountConnectionAttemptsAPI.AccountConnectionAttempts =
|
|
335
352
|
new AccountConnectionAttemptsAPI.AccountConnectionAttempts(this._client);
|
|
353
|
+
accountConnectionLinks: AccountConnectionLinksAPI.AccountConnectionLinks =
|
|
354
|
+
new AccountConnectionLinksAPI.AccountConnectionLinks(this._client);
|
|
336
355
|
bookmarks: BookmarksAPI.Bookmarks = new BookmarksAPI.Bookmarks(this._client);
|
|
337
356
|
lists: ListsAPI.Lists = new ListsAPI.Lists(this._client);
|
|
338
357
|
broadcasts: BroadcastsAPI.Broadcasts = new BroadcastsAPI.Broadcasts(this._client);
|
|
@@ -847,6 +866,13 @@ export namespace XGetArticleResponse {
|
|
|
847
866
|
|
|
848
867
|
title?: string;
|
|
849
868
|
|
|
869
|
+
/**
|
|
870
|
+
* X did not send these counts, so each 0 means unknown.
|
|
871
|
+
*/
|
|
872
|
+
unknownCounts?: Array<
|
|
873
|
+
'retweetCount' | 'replyCount' | 'likeCount' | 'quoteCount' | 'viewCount' | 'bookmarkCount'
|
|
874
|
+
>;
|
|
875
|
+
|
|
850
876
|
viewCount?: number;
|
|
851
877
|
}
|
|
852
878
|
|
|
@@ -1633,6 +1659,12 @@ export interface XGetHomeTimelineParams {
|
|
|
1633
1659
|
* Comma-separated tweet IDs to exclude from results. Empty entries are ignored.
|
|
1634
1660
|
*/
|
|
1635
1661
|
seenTweetIds?: string;
|
|
1662
|
+
|
|
1663
|
+
/**
|
|
1664
|
+
* Items per page, 1 to 100, default 20. Source, filters or credits can return
|
|
1665
|
+
* fewer. Follow next_cursor for more pages.
|
|
1666
|
+
*/
|
|
1667
|
+
pageSize?: number;
|
|
1636
1668
|
}
|
|
1637
1669
|
|
|
1638
1670
|
export interface XGetNewsStoryVersionsParams {
|
|
@@ -1875,6 +1907,7 @@ X.Communities = Communities;
|
|
|
1875
1907
|
X.Accounts = Accounts;
|
|
1876
1908
|
X.AccountConnectionChallenges = AccountConnectionChallenges;
|
|
1877
1909
|
X.AccountConnectionAttempts = AccountConnectionAttempts;
|
|
1910
|
+
X.AccountConnectionLinks = AccountConnectionLinks;
|
|
1878
1911
|
X.Bookmarks = Bookmarks;
|
|
1879
1912
|
X.Lists = Lists;
|
|
1880
1913
|
X.Broadcasts = Broadcasts;
|
|
@@ -1967,6 +2000,11 @@ export declare namespace X {
|
|
|
1967
2000
|
type UserRemoveFollowerResponse as UserRemoveFollowerResponse,
|
|
1968
2001
|
type UserRetrieveBatchResponse as UserRetrieveBatchResponse,
|
|
1969
2002
|
type UserRetrieveBatchTweetsResponse as UserRetrieveBatchTweetsResponse,
|
|
2003
|
+
type UserRetrieveFollowerAuditResponse as UserRetrieveFollowerAuditResponse,
|
|
2004
|
+
type FollowerAudit as FollowerAudit,
|
|
2005
|
+
type AuditedFollower as AuditedFollower,
|
|
2006
|
+
type FollowerClass as FollowerClass,
|
|
2007
|
+
type FollowerValueCount as FollowerValueCount,
|
|
1970
2008
|
type UserRetrieveFollowerIDsResponse as UserRetrieveFollowerIDsResponse,
|
|
1971
2009
|
type UserRetrieveFollowersResponse as UserRetrieveFollowersResponse,
|
|
1972
2010
|
type UserRetrieveFollowingResponse as UserRetrieveFollowingResponse,
|
|
@@ -1985,6 +2023,7 @@ export declare namespace X {
|
|
|
1985
2023
|
type UserRetrieveArticlesParams as UserRetrieveArticlesParams,
|
|
1986
2024
|
type UserRetrieveBatchParams as UserRetrieveBatchParams,
|
|
1987
2025
|
type UserRetrieveBatchTweetsParams as UserRetrieveBatchTweetsParams,
|
|
2026
|
+
type UserRetrieveFollowerAuditParams as UserRetrieveFollowerAuditParams,
|
|
1988
2027
|
type UserRetrieveFollowerIDsParams as UserRetrieveFollowerIDsParams,
|
|
1989
2028
|
type UserRetrieveFollowersParams as UserRetrieveFollowersParams,
|
|
1990
2029
|
type UserRetrieveFollowersYouKnowParams as UserRetrieveFollowersYouKnowParams,
|
|
@@ -2102,6 +2141,16 @@ export declare namespace X {
|
|
|
2102
2141
|
type AccountConnectionAttemptRetrieveResponse as AccountConnectionAttemptRetrieveResponse,
|
|
2103
2142
|
};
|
|
2104
2143
|
|
|
2144
|
+
export {
|
|
2145
|
+
AccountConnectionLinks as AccountConnectionLinks,
|
|
2146
|
+
type XAccountConnectionLink as XAccountConnectionLink,
|
|
2147
|
+
type AccountConnectionLinkCreateResponse as AccountConnectionLinkCreateResponse,
|
|
2148
|
+
type AccountConnectionLinkListResponse as AccountConnectionLinkListResponse,
|
|
2149
|
+
type AccountConnectionLinkDeleteResponse as AccountConnectionLinkDeleteResponse,
|
|
2150
|
+
type AccountConnectionLinkCreateParams as AccountConnectionLinkCreateParams,
|
|
2151
|
+
type AccountConnectionLinkListParams as AccountConnectionLinkListParams,
|
|
2152
|
+
};
|
|
2153
|
+
|
|
2105
2154
|
export {
|
|
2106
2155
|
Bookmarks as Bookmarks,
|
|
2107
2156
|
type BookmarkRetrieveFoldersResponse as BookmarkRetrieveFoldersResponse,
|
|
@@ -2160,6 +2209,7 @@ export declare namespace X {
|
|
|
2160
2209
|
type FootballSchedulePeriod as FootballSchedulePeriod,
|
|
2161
2210
|
type FootballOdds as FootballOdds,
|
|
2162
2211
|
type FootballScheduleGameOdds as FootballScheduleGameOdds,
|
|
2212
|
+
type FootballPollRanking as FootballPollRanking,
|
|
2163
2213
|
type FootballScheduleGame as FootballScheduleGame,
|
|
2164
2214
|
type SportsTeamColor as SportsTeamColor,
|
|
2165
2215
|
type SportsTeamLogos as SportsTeamLogos,
|
package/src/version.ts
CHANGED
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.22.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.22.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED