@the-convocation/twitter-scraper 0.4.0 → 0.6.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/api.d.ts +11 -0
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +12 -1
- package/dist/api.js.map +1 -1
- package/dist/auth-user.d.ts.map +1 -1
- package/dist/auth-user.js.map +1 -1
- package/dist/errors.d.ts +24 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +16 -1
- package/dist/errors.js.map +1 -1
- package/dist/profile.d.ts +18 -7
- package/dist/profile.d.ts.map +1 -1
- package/dist/profile.js +30 -8
- package/dist/profile.js.map +1 -1
- package/dist/scraper.d.ts +36 -2
- package/dist/scraper.d.ts.map +1 -1
- package/dist/scraper.js +40 -2
- package/dist/scraper.js.map +1 -1
- package/dist/search.js +4 -1
- package/dist/search.js.map +1 -1
- package/dist/timeline-search.d.ts +3 -3
- package/dist/timeline-search.d.ts.map +1 -1
- package/dist/timeline-search.js +6 -4
- package/dist/timeline-search.js.map +1 -1
- package/dist/timeline-tweet-util.d.ts.map +1 -1
- package/dist/timeline-tweet-util.js +1 -0
- package/dist/timeline-tweet-util.js.map +1 -1
- package/dist/timeline-v1.d.ts +28 -0
- package/dist/timeline-v1.d.ts.map +1 -1
- package/dist/timeline-v1.js.map +1 -1
- package/dist/timeline-v2.d.ts +42 -16
- package/dist/timeline-v2.d.ts.map +1 -1
- package/dist/timeline-v2.js +89 -51
- package/dist/timeline-v2.js.map +1 -1
- package/dist/tweets.d.ts +38 -1
- package/dist/tweets.d.ts.map +1 -1
- package/dist/tweets.js +95 -40
- package/dist/tweets.js.map +1 -1
- package/package.json +2 -2
package/dist/tweets.js
CHANGED
|
@@ -3,38 +3,59 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getTweet = exports.getLatestTweet = exports.getTweetsByUserId = exports.getTweets = exports.fetchTweets = void 0;
|
|
6
|
+
exports.getTweet = exports.getLatestTweet = exports.getTweetsWhere = exports.getTweetWhere = exports.getTweetsByUserId = exports.getTweets = exports.fetchTweets = exports.features = void 0;
|
|
7
7
|
const api_1 = require("./api");
|
|
8
8
|
const profile_1 = require("./profile");
|
|
9
9
|
const timeline_v2_1 = require("./timeline-v2");
|
|
10
10
|
const timeline_async_1 = require("./timeline-async");
|
|
11
11
|
const json_stable_stringify_1 = __importDefault(require("json-stable-stringify"));
|
|
12
|
+
exports.features = (0, api_1.addApiFeatures)({
|
|
13
|
+
interactive_text_enabled: true,
|
|
14
|
+
longform_notetweets_inline_media_enabled: false,
|
|
15
|
+
responsive_web_text_conversations_enabled: false,
|
|
16
|
+
tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled: false,
|
|
17
|
+
vibe_api_enabled: false,
|
|
18
|
+
});
|
|
12
19
|
async function fetchTweets(userId, maxTweets, cursor, auth) {
|
|
13
20
|
if (maxTweets > 200) {
|
|
14
21
|
maxTweets = 200;
|
|
15
22
|
}
|
|
16
23
|
const variables = {
|
|
17
|
-
userId,
|
|
24
|
+
userId: userId,
|
|
18
25
|
count: maxTweets,
|
|
19
26
|
includePromotedContent: false,
|
|
20
|
-
withQuickPromoteEligibilityTweetFields:
|
|
27
|
+
withQuickPromoteEligibilityTweetFields: true,
|
|
21
28
|
withVoice: true,
|
|
22
29
|
withV2Timeline: true,
|
|
23
30
|
};
|
|
24
|
-
const features = (0, api_1.addApiFeatures)({
|
|
25
|
-
interactive_text_enabled: true,
|
|
26
|
-
longform_notetweets_inline_media_enabled: false,
|
|
27
|
-
responsive_web_text_conversations_enabled: false,
|
|
28
|
-
tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled: false,
|
|
29
|
-
vibe_api_enabled: true,
|
|
30
|
-
});
|
|
31
31
|
if (cursor != null && cursor != '') {
|
|
32
32
|
variables['cursor'] = cursor;
|
|
33
33
|
}
|
|
34
34
|
const params = new URLSearchParams();
|
|
35
35
|
params.set('variables', (0, json_stable_stringify_1.default)(variables));
|
|
36
|
-
params.set('features', (0, json_stable_stringify_1.default)(
|
|
37
|
-
|
|
36
|
+
params.set('features', (0, json_stable_stringify_1.default)({
|
|
37
|
+
rweb_lists_timeline_redesign_enabled: true,
|
|
38
|
+
responsive_web_graphql_exclude_directive_enabled: true,
|
|
39
|
+
verified_phone_label_enabled: false,
|
|
40
|
+
creator_subscriptions_tweet_preview_api_enabled: true,
|
|
41
|
+
responsive_web_graphql_timeline_navigation_enabled: true,
|
|
42
|
+
responsive_web_graphql_skip_user_profile_image_extensions_enabled: false,
|
|
43
|
+
tweetypie_unmention_optimization_enabled: true,
|
|
44
|
+
responsive_web_edit_tweet_api_enabled: true,
|
|
45
|
+
graphql_is_translatable_rweb_tweet_is_translatable_enabled: true,
|
|
46
|
+
view_counts_everywhere_api_enabled: true,
|
|
47
|
+
longform_notetweets_consumption_enabled: true,
|
|
48
|
+
responsive_web_twitter_article_tweet_consumption_enabled: false,
|
|
49
|
+
tweet_awards_web_tipping_enabled: false,
|
|
50
|
+
freedom_of_speech_not_reach_fetch_enabled: true,
|
|
51
|
+
standardized_nudges_misinfo: true,
|
|
52
|
+
tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled: true,
|
|
53
|
+
longform_notetweets_rich_text_read_enabled: true,
|
|
54
|
+
longform_notetweets_inline_media_enabled: true,
|
|
55
|
+
responsive_web_media_download_video_enabled: false,
|
|
56
|
+
responsive_web_enhance_cards_enabled: false,
|
|
57
|
+
}));
|
|
58
|
+
const res = await (0, api_1.requestApi)(`https://twitter.com/i/api/graphql/XicnWRbyQ3WgVY__VataBQ/UserTweets?${params.toString()}`, auth);
|
|
38
59
|
if (!res.success) {
|
|
39
60
|
throw res.err;
|
|
40
61
|
}
|
|
@@ -58,49 +79,83 @@ function getTweetsByUserId(userId, maxTweets, auth) {
|
|
|
58
79
|
});
|
|
59
80
|
}
|
|
60
81
|
exports.getTweetsByUserId = getTweetsByUserId;
|
|
61
|
-
async function
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
if (!tweet.isRetweet) {
|
|
82
|
+
async function getTweetWhere(tweets, query) {
|
|
83
|
+
const isCallback = typeof query === 'function';
|
|
84
|
+
for await (const tweet of tweets) {
|
|
85
|
+
const matches = isCallback
|
|
86
|
+
? await query(tweet)
|
|
87
|
+
: checkTweetMatches(tweet, query);
|
|
88
|
+
if (matches) {
|
|
69
89
|
return tweet;
|
|
70
90
|
}
|
|
71
91
|
}
|
|
72
92
|
return null;
|
|
73
93
|
}
|
|
94
|
+
exports.getTweetWhere = getTweetWhere;
|
|
95
|
+
async function getTweetsWhere(tweets, query) {
|
|
96
|
+
const isCallback = typeof query === 'function';
|
|
97
|
+
const filtered = [];
|
|
98
|
+
for await (const tweet of tweets) {
|
|
99
|
+
const matches = isCallback ? query(tweet) : checkTweetMatches(tweet, query);
|
|
100
|
+
if (!matches)
|
|
101
|
+
continue;
|
|
102
|
+
filtered.push(tweet);
|
|
103
|
+
}
|
|
104
|
+
return filtered;
|
|
105
|
+
}
|
|
106
|
+
exports.getTweetsWhere = getTweetsWhere;
|
|
107
|
+
function checkTweetMatches(tweet, options) {
|
|
108
|
+
return Object.keys(options).every((k) => {
|
|
109
|
+
const key = k;
|
|
110
|
+
return tweet[key] === options[key];
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
async function getLatestTweet(user, includeRetweets, max, auth) {
|
|
114
|
+
const timeline = getTweets(user, max, auth);
|
|
115
|
+
// No point looping if max is 1, just use first entry.
|
|
116
|
+
return max === 1
|
|
117
|
+
? (await timeline.next()).value
|
|
118
|
+
: await getTweetWhere(timeline, { isRetweet: includeRetweets });
|
|
119
|
+
}
|
|
74
120
|
exports.getLatestTweet = getLatestTweet;
|
|
75
121
|
async function getTweet(id, auth) {
|
|
76
122
|
const variables = {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
includePromotedContent:
|
|
80
|
-
|
|
81
|
-
withQuickPromoteEligibilityTweetFields: true,
|
|
82
|
-
withBirdwatchNotes: true,
|
|
83
|
-
withVoice: true,
|
|
84
|
-
withV2Timeline: true,
|
|
123
|
+
tweetId: id,
|
|
124
|
+
withCommunity: false,
|
|
125
|
+
includePromotedContent: false,
|
|
126
|
+
withVoice: false,
|
|
85
127
|
};
|
|
86
|
-
const features = (0, api_1.addApiFeatures)({
|
|
87
|
-
longform_notetweets_inline_media_enabled: true,
|
|
88
|
-
tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled: false,
|
|
89
|
-
});
|
|
90
128
|
const params = new URLSearchParams();
|
|
91
|
-
params.set('features', (0, json_stable_stringify_1.default)(
|
|
129
|
+
params.set('features', (0, json_stable_stringify_1.default)({
|
|
130
|
+
creator_subscriptions_tweet_preview_api_enabled: true,
|
|
131
|
+
tweetypie_unmention_optimization_enabled: true,
|
|
132
|
+
responsive_web_edit_tweet_api_enabled: true,
|
|
133
|
+
graphql_is_translatable_rweb_tweet_is_translatable_enabled: true,
|
|
134
|
+
view_counts_everywhere_api_enabled: true,
|
|
135
|
+
longform_notetweets_consumption_enabled: true,
|
|
136
|
+
responsive_web_twitter_article_tweet_consumption_enabled: false,
|
|
137
|
+
tweet_awards_web_tipping_enabled: false,
|
|
138
|
+
freedom_of_speech_not_reach_fetch_enabled: true,
|
|
139
|
+
standardized_nudges_misinfo: true,
|
|
140
|
+
tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled: true,
|
|
141
|
+
longform_notetweets_rich_text_read_enabled: true,
|
|
142
|
+
longform_notetweets_inline_media_enabled: true,
|
|
143
|
+
responsive_web_graphql_exclude_directive_enabled: true,
|
|
144
|
+
verified_phone_label_enabled: false,
|
|
145
|
+
responsive_web_media_download_video_enabled: false,
|
|
146
|
+
responsive_web_graphql_skip_user_profile_image_extensions_enabled: false,
|
|
147
|
+
responsive_web_graphql_timeline_navigation_enabled: true,
|
|
148
|
+
responsive_web_enhance_cards_enabled: false,
|
|
149
|
+
}));
|
|
92
150
|
params.set('variables', (0, json_stable_stringify_1.default)(variables));
|
|
93
|
-
const res = await (0, api_1.requestApi)(`https://twitter.com/i/api/graphql/
|
|
151
|
+
const res = await (0, api_1.requestApi)(`https://twitter.com/i/api/graphql/0hWvDhmW8YQ-S_ib3azIrw/TweetResultByRestId?${params.toString()}`, auth);
|
|
94
152
|
if (!res.success) {
|
|
95
153
|
throw res.err;
|
|
96
154
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
if (tweet.id === id) {
|
|
100
|
-
return tweet;
|
|
101
|
-
}
|
|
155
|
+
if (!res.value.data) {
|
|
156
|
+
return null;
|
|
102
157
|
}
|
|
103
|
-
return
|
|
158
|
+
return (0, timeline_v2_1.parseTimelineEntryItemContentRaw)(res.value.data, id);
|
|
104
159
|
}
|
|
105
160
|
exports.getTweet = getTweet;
|
|
106
161
|
//# sourceMappingURL=tweets.js.map
|
package/dist/tweets.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tweets.js","sourceRoot":"","sources":["../src/tweets.ts"],"names":[],"mappings":";;;;;;AAAA,+BAAmD;AAEnD,uCAAkD;AAElD,+CAKuB;AACvB,qDAAoD;AACpD,kFAA8C;
|
|
1
|
+
{"version":3,"file":"tweets.js","sourceRoot":"","sources":["../src/tweets.ts"],"names":[],"mappings":";;;;;;AAAA,+BAAmD;AAEnD,uCAAkD;AAElD,+CAKuB;AACvB,qDAAoD;AACpD,kFAA8C;AA4EjC,QAAA,QAAQ,GAAG,IAAA,oBAAc,EAAC;IACrC,wBAAwB,EAAE,IAAI;IAC9B,wCAAwC,EAAE,KAAK;IAC/C,yCAAyC,EAAE,KAAK;IAChD,uEAAuE,EACrE,KAAK;IACP,gBAAgB,EAAE,KAAK;CACxB,CAAC,CAAC;AAEI,KAAK,UAAU,WAAW,CAC/B,MAAc,EACd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;KACf;IAED,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE;QACnB,OAAO,IAAI,CAAC;KACb;IAED,OAAO,IAAA,8CAAgC,EAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AAC9D,CAAC;AArDD,4BAqDC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@the-convocation/twitter-scraper",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"main": "dist/_module.js",
|
|
5
5
|
"repository": "https://github.com/the-convocation/twitter-scraper.git",
|
|
6
6
|
"author": "karashiiro <49822414+karashiiro@users.noreply.github.com>",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"commit": "cz",
|
|
14
14
|
"docs:generate": "typedoc --options typedoc.json",
|
|
15
15
|
"docs:deploy": "yarn docs:generate && gh-pages -d docs",
|
|
16
|
-
"format": "prettier --write
|
|
16
|
+
"format": "prettier --write src/**/*.ts",
|
|
17
17
|
"prepare": "husky install",
|
|
18
18
|
"test": "jest"
|
|
19
19
|
},
|