x-twitter-scraper 0.20.0 → 0.21.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 +55 -0
- package/README.md +120 -121
- package/client.d.mts +7 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +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 +175 -5
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +175 -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 +2 -1
- package/resources/x/index.d.mts.map +1 -1
- package/resources/x/index.d.ts +2 -1
- 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/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 +41 -13
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +41 -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 +15 -2
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +15 -2
- 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 +9 -0
- package/src/core/README.md +4 -0
- package/src/internal/README.md +6 -1
- 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 +203 -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 +15 -0
- package/src/resources/x/media.ts +64 -0
- package/src/resources/x/profile.ts +18 -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 +69 -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 +48 -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,
|
|
@@ -279,7 +289,13 @@ import {
|
|
|
279
289
|
UserRetrieveBatchResponse,
|
|
280
290
|
UserRetrieveBatchTweetsParams,
|
|
281
291
|
UserRetrieveBatchTweetsResponse,
|
|
292
|
+
UserRetrieveFollowerAuditParams,
|
|
282
293
|
UserRetrieveFollowerIDsParams,
|
|
294
|
+
UserRetrieveFollowerAuditResponse,
|
|
295
|
+
FollowerAudit,
|
|
296
|
+
AuditedFollower,
|
|
297
|
+
FollowerClass,
|
|
298
|
+
FollowerValueCount,
|
|
283
299
|
UserRetrieveFollowerIDsResponse,
|
|
284
300
|
UserRetrieveFollowersParams,
|
|
285
301
|
UserRetrieveFollowersResponse,
|
|
@@ -333,6 +349,8 @@ export class X extends APIResource {
|
|
|
333
349
|
new AccountConnectionChallengesAPI.AccountConnectionChallenges(this._client);
|
|
334
350
|
accountConnectionAttempts: AccountConnectionAttemptsAPI.AccountConnectionAttempts =
|
|
335
351
|
new AccountConnectionAttemptsAPI.AccountConnectionAttempts(this._client);
|
|
352
|
+
accountConnectionLinks: AccountConnectionLinksAPI.AccountConnectionLinks =
|
|
353
|
+
new AccountConnectionLinksAPI.AccountConnectionLinks(this._client);
|
|
336
354
|
bookmarks: BookmarksAPI.Bookmarks = new BookmarksAPI.Bookmarks(this._client);
|
|
337
355
|
lists: ListsAPI.Lists = new ListsAPI.Lists(this._client);
|
|
338
356
|
broadcasts: BroadcastsAPI.Broadcasts = new BroadcastsAPI.Broadcasts(this._client);
|
|
@@ -847,6 +865,13 @@ export namespace XGetArticleResponse {
|
|
|
847
865
|
|
|
848
866
|
title?: string;
|
|
849
867
|
|
|
868
|
+
/**
|
|
869
|
+
* X did not send these counts, so each 0 means unknown.
|
|
870
|
+
*/
|
|
871
|
+
unknownCounts?: Array<
|
|
872
|
+
'retweetCount' | 'replyCount' | 'likeCount' | 'quoteCount' | 'viewCount' | 'bookmarkCount'
|
|
873
|
+
>;
|
|
874
|
+
|
|
850
875
|
viewCount?: number;
|
|
851
876
|
}
|
|
852
877
|
|
|
@@ -1633,6 +1658,12 @@ export interface XGetHomeTimelineParams {
|
|
|
1633
1658
|
* Comma-separated tweet IDs to exclude from results. Empty entries are ignored.
|
|
1634
1659
|
*/
|
|
1635
1660
|
seenTweetIds?: string;
|
|
1661
|
+
|
|
1662
|
+
/**
|
|
1663
|
+
* Items per page, 1 to 100, default 20. Source, filters or credits can return
|
|
1664
|
+
* fewer. Follow next_cursor for more pages.
|
|
1665
|
+
*/
|
|
1666
|
+
pageSize?: number;
|
|
1636
1667
|
}
|
|
1637
1668
|
|
|
1638
1669
|
export interface XGetNewsStoryVersionsParams {
|
|
@@ -1875,6 +1906,7 @@ X.Communities = Communities;
|
|
|
1875
1906
|
X.Accounts = Accounts;
|
|
1876
1907
|
X.AccountConnectionChallenges = AccountConnectionChallenges;
|
|
1877
1908
|
X.AccountConnectionAttempts = AccountConnectionAttempts;
|
|
1909
|
+
X.AccountConnectionLinks = AccountConnectionLinks;
|
|
1878
1910
|
X.Bookmarks = Bookmarks;
|
|
1879
1911
|
X.Lists = Lists;
|
|
1880
1912
|
X.Broadcasts = Broadcasts;
|
|
@@ -1967,6 +1999,11 @@ export declare namespace X {
|
|
|
1967
1999
|
type UserRemoveFollowerResponse as UserRemoveFollowerResponse,
|
|
1968
2000
|
type UserRetrieveBatchResponse as UserRetrieveBatchResponse,
|
|
1969
2001
|
type UserRetrieveBatchTweetsResponse as UserRetrieveBatchTweetsResponse,
|
|
2002
|
+
type UserRetrieveFollowerAuditResponse as UserRetrieveFollowerAuditResponse,
|
|
2003
|
+
type FollowerAudit as FollowerAudit,
|
|
2004
|
+
type AuditedFollower as AuditedFollower,
|
|
2005
|
+
type FollowerClass as FollowerClass,
|
|
2006
|
+
type FollowerValueCount as FollowerValueCount,
|
|
1970
2007
|
type UserRetrieveFollowerIDsResponse as UserRetrieveFollowerIDsResponse,
|
|
1971
2008
|
type UserRetrieveFollowersResponse as UserRetrieveFollowersResponse,
|
|
1972
2009
|
type UserRetrieveFollowingResponse as UserRetrieveFollowingResponse,
|
|
@@ -1985,6 +2022,7 @@ export declare namespace X {
|
|
|
1985
2022
|
type UserRetrieveArticlesParams as UserRetrieveArticlesParams,
|
|
1986
2023
|
type UserRetrieveBatchParams as UserRetrieveBatchParams,
|
|
1987
2024
|
type UserRetrieveBatchTweetsParams as UserRetrieveBatchTweetsParams,
|
|
2025
|
+
type UserRetrieveFollowerAuditParams as UserRetrieveFollowerAuditParams,
|
|
1988
2026
|
type UserRetrieveFollowerIDsParams as UserRetrieveFollowerIDsParams,
|
|
1989
2027
|
type UserRetrieveFollowersParams as UserRetrieveFollowersParams,
|
|
1990
2028
|
type UserRetrieveFollowersYouKnowParams as UserRetrieveFollowersYouKnowParams,
|
|
@@ -2102,6 +2140,16 @@ export declare namespace X {
|
|
|
2102
2140
|
type AccountConnectionAttemptRetrieveResponse as AccountConnectionAttemptRetrieveResponse,
|
|
2103
2141
|
};
|
|
2104
2142
|
|
|
2143
|
+
export {
|
|
2144
|
+
AccountConnectionLinks as AccountConnectionLinks,
|
|
2145
|
+
type XAccountConnectionLink as XAccountConnectionLink,
|
|
2146
|
+
type AccountConnectionLinkCreateResponse as AccountConnectionLinkCreateResponse,
|
|
2147
|
+
type AccountConnectionLinkListResponse as AccountConnectionLinkListResponse,
|
|
2148
|
+
type AccountConnectionLinkDeleteResponse as AccountConnectionLinkDeleteResponse,
|
|
2149
|
+
type AccountConnectionLinkCreateParams as AccountConnectionLinkCreateParams,
|
|
2150
|
+
type AccountConnectionLinkListParams as AccountConnectionLinkListParams,
|
|
2151
|
+
};
|
|
2152
|
+
|
|
2105
2153
|
export {
|
|
2106
2154
|
Bookmarks as Bookmarks,
|
|
2107
2155
|
type BookmarkRetrieveFoldersResponse as BookmarkRetrieveFoldersResponse,
|
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.21.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.21.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED