rettiwt-api 1.0.2 → 1.0.5
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 +1 -1
- package/dist/resolvers/TweetResolver.js +24 -20
- package/dist/resolvers/TweetResolver.js.map +1 -1
- package/dist/resolvers/UserResolver.d.ts +0 -9
- package/dist/resolvers/UserResolver.js +18 -67
- package/dist/resolvers/UserResolver.js.map +1 -1
- package/dist/services/AuthService.d.ts +1 -0
- package/dist/services/AuthService.js +2 -0
- package/dist/services/AuthService.js.map +1 -1
- package/dist/services/FetcherService.d.ts +1 -0
- package/dist/services/FetcherService.js +2 -1
- package/dist/services/FetcherService.js.map +1 -1
- package/dist/services/data/TweetService.js +19 -4
- package/dist/services/data/TweetService.js.map +1 -1
- package/dist/services/data/UserAccountService.d.ts +0 -7
- package/dist/services/data/UserAccountService.js +18 -29
- package/dist/services/data/UserAccountService.js.map +1 -1
- package/dist/services/helper/Extractors.js +1 -1
- package/dist/services/helper/Extractors.js.map +1 -1
- package/dist/services/helper/Urls.js +8 -8
- package/dist/services/helper/Urls.js.map +1 -1
- package/dist/types/Service.d.ts +3 -2
- package/dist/types/raw/tweet/Tweet.d.ts +2 -2
- package/package.json +1 -1
- package/src/resolvers/TweetResolver.ts +8 -8
- package/src/resolvers/UserResolver.ts +6 -57
- package/src/services/AuthService.ts +4 -0
- package/src/services/FetcherService.ts +3 -1
- package/src/services/data/TweetService.ts +16 -1
- package/src/services/data/UserAccountService.ts +15 -26
- package/src/services/helper/Extractors.ts +1 -1
- package/src/services/helper/Urls.ts +8 -8
- package/src/types/Service.ts +3 -2
- package/src/types/raw/tweet/Tweet.ts +2 -2
|
@@ -239,7 +239,7 @@ function extractTweet(res, tweetId) {
|
|
|
239
239
|
throw new Error(Errors_1.DataErrors.TweetNotFound);
|
|
240
240
|
}
|
|
241
241
|
// Destructuring the received raw data
|
|
242
|
-
(_a = res.data.
|
|
242
|
+
(_a = res.data.threaded_conversation_with_injections_v2.instructions.filter(function (item) { return item['type'] === 'TimelineAddEntries'; })[0].entries) === null || _a === void 0 ? void 0 : _a.forEach(function (entry) {
|
|
243
243
|
var _a, _b, _c;
|
|
244
244
|
// If entry is of type tweet and tweet exists
|
|
245
245
|
if (entry.entryId.indexOf('tweet') != -1 && ((_b = (_a = entry.content.itemContent) === null || _a === void 0 ? void 0 : _a.tweet_results) === null || _b === void 0 ? void 0 : _b.result.__typename) === 'Tweet') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Extractors.js","sourceRoot":"","sources":["../../../src/services/helper/Extractors.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,QAAQ;AACR,qDAAwD;AAWxD,UAAU;AACV,gDAAoC;AAEpC,WAAW;AAEX;;;GAGG;AACH,SAAgB,yBAAyB,CAAC,GAAY;IAMlD,IAAI,QAAQ,GAAU,EAAE,CAAC,CAA+C,iCAAiC;IACzG,IAAI,MAAM,GAAW,EAAE,CAAC,CAAgD,oCAAoC;IAC5G,IAAI,KAAK,GAAU,EAAE,CAAC,CAAkD,gCAAgC;IACxG,IAAI,MAAM,GAAU,EAAE,CAAC,CAAiD,iCAAiC;IAEzG,yCAAyC;IACzC,IAAI,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,KAAK,MAAM,EAAE;QACnH,MAAM,IAAI,KAAK,CAAC,mBAAU,CAAC,YAAY,CAAC,CAAC;KAC5C;IAED,kCAAkC;IAClC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACpC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAEjC,qBAAq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KAAK,CAAC,OAAO,CAAC,UAAA,IAAI;;gBAC5B,2BAA2B;gBAC3B,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE;oBACrC,kBAAkB;oBAClB,IAAG,CAAA,MAAA,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,0CAAE,MAAM,CAAC,UAAU,MAAK,OAAO,EAAE;wBACnE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;wBACxD,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;qBACnF;iBACJ;YACL,CAAC,CAAC,CAAC;SACN;QACD,oCAAoC;aAC/B,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,EAAE;YACnD,MAAM,GAAG,MAAA,MAAA,KAAK,CAAC,OAAO,CAAC,WAAW,0CAAE,KAAK,mCAAI,EAAE,CAAC;SACnD;IACL,CAAC,CAAC,CAAC;IAEH,qBAAqB;IACrB,OAAO;QACH,QAAQ,EAAE,QAAQ;QAClB,MAAM,EAAE,MAAM;QACd,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,MAAM;KACjB,CAAC;AACN,CAAC;AA/DD,kDA+DC"}
|
|
@@ -31,7 +31,7 @@ exports.userAccountByIdUrl = userAccountByIdUrl;
|
|
|
31
31
|
* @param cursor The cursor to next batch
|
|
32
32
|
*/
|
|
33
33
|
function userFollowingUrl(userId, count, cursor) {
|
|
34
|
-
return "https://api.twitter.com/graphql/mSnjZc5CTm2Z5Lu_i4XsPQ/Following?variables=%7B%22userId%22%3A%22".concat(userId, "%22%2C%22count%22%3A").concat(count, "%2C%22cursor%22%3A%22").concat(cursor, "%22%2C%22includePromotedContent%22%3Afalse%2C%22withSuperFollowsUserFields%22%3Atrue%2C%22withDownvotePerspective%22%3Afalse%2C%22withReactionsMetadata%22%3Afalse%2C%22withReactionsPerspective%22%3Afalse%2C%22withSuperFollowsTweetFields%22%3Atrue%7D&features=%7B%22responsive_web_twitter_blue_verified_badge_is_enabled%22%3Atrue%2C%22verified_phone_label_enabled%22%3Atrue%2C%22responsive_web_graphql_timeline_navigation_enabled%22%3Atrue%2C%22view_counts_public_visibility_enabled%22%3Atrue%2C%22longform_notetweets_consumption_enabled%22%3Afalse%2C%22tweetypie_unmention_optimization_enabled%22%3Atrue%2C%22responsive_web_uc_gql_enabled%22%3Atrue%2C%22vibe_api_enabled%22%3Atrue%2C%22responsive_web_edit_tweet_api_enabled%22%3Atrue%2C%22graphql_is_translatable_rweb_tweet_is_translatable_enabled%22%3Atrue%2C%22view_counts_everywhere_api_enabled%22%3Atrue%2C%22standardized_nudges_misinfo%22%3Atrue%2C%22tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled%22%3Afalse%2C%22interactive_text_enabled%22%3Atrue%2C%22responsive_web_text_conversations_enabled%22%3Afalse%2C%22responsive_web_enhance_cards_enabled%22%3Afalse%7D");
|
|
34
|
+
return "https://api.twitter.com/graphql/mSnjZc5CTm2Z5Lu_i4XsPQ/Following?variables=%7B%22userId%22%3A%22".concat(userId, "%22%2C%22count%22%3A").concat(count, "%2C%22cursor%22%3A%22").concat(encodeURIComponent(cursor), "%22%2C%22includePromotedContent%22%3Afalse%2C%22withSuperFollowsUserFields%22%3Atrue%2C%22withDownvotePerspective%22%3Afalse%2C%22withReactionsMetadata%22%3Afalse%2C%22withReactionsPerspective%22%3Afalse%2C%22withSuperFollowsTweetFields%22%3Atrue%7D&features=%7B%22responsive_web_twitter_blue_verified_badge_is_enabled%22%3Atrue%2C%22verified_phone_label_enabled%22%3Atrue%2C%22responsive_web_graphql_timeline_navigation_enabled%22%3Atrue%2C%22view_counts_public_visibility_enabled%22%3Atrue%2C%22longform_notetweets_consumption_enabled%22%3Afalse%2C%22tweetypie_unmention_optimization_enabled%22%3Atrue%2C%22responsive_web_uc_gql_enabled%22%3Atrue%2C%22vibe_api_enabled%22%3Atrue%2C%22responsive_web_edit_tweet_api_enabled%22%3Atrue%2C%22graphql_is_translatable_rweb_tweet_is_translatable_enabled%22%3Atrue%2C%22view_counts_everywhere_api_enabled%22%3Atrue%2C%22standardized_nudges_misinfo%22%3Atrue%2C%22tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled%22%3Afalse%2C%22interactive_text_enabled%22%3Atrue%2C%22responsive_web_text_conversations_enabled%22%3Afalse%2C%22responsive_web_enhance_cards_enabled%22%3Afalse%7D");
|
|
35
35
|
}
|
|
36
36
|
exports.userFollowingUrl = userFollowingUrl;
|
|
37
37
|
/**
|
|
@@ -41,7 +41,7 @@ exports.userFollowingUrl = userFollowingUrl;
|
|
|
41
41
|
* @param cursor The cusor to next batch
|
|
42
42
|
*/
|
|
43
43
|
function userFollowersUrl(userId, count, cursor) {
|
|
44
|
-
return "https://api.twitter.com/graphql/nwlAnaw7oKXcVLi91ehy7Q/Followers?variables=%7B%22userId%22%3A%22".concat(userId, "%22%2C%22count%22%3A").concat(count, "%2C%22cursor%22%3A%22").concat(cursor, "%22%2C%22includePromotedContent%22%3Afalse%2C%22withSuperFollowsUserFields%22%3Atrue%2C%22withDownvotePerspective%22%3Afalse%2C%22withReactionsMetadata%22%3Afalse%2C%22withReactionsPerspective%22%3Afalse%2C%22withSuperFollowsTweetFields%22%3Atrue%7D&features=%7B%22responsive_web_twitter_blue_verified_badge_is_enabled%22%3Atrue%2C%22verified_phone_label_enabled%22%3Atrue%2C%22responsive_web_graphql_timeline_navigation_enabled%22%3Atrue%2C%22view_counts_public_visibility_enabled%22%3Atrue%2C%22longform_notetweets_consumption_enabled%22%3Afalse%2C%22tweetypie_unmention_optimization_enabled%22%3Atrue%2C%22responsive_web_uc_gql_enabled%22%3Atrue%2C%22vibe_api_enabled%22%3Atrue%2C%22responsive_web_edit_tweet_api_enabled%22%3Atrue%2C%22graphql_is_translatable_rweb_tweet_is_translatable_enabled%22%3Atrue%2C%22view_counts_everywhere_api_enabled%22%3Atrue%2C%22standardized_nudges_misinfo%22%3Atrue%2C%22tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled%22%3Afalse%2C%22interactive_text_enabled%22%3Atrue%2C%22responsive_web_text_conversations_enabled%22%3Afalse%2C%22responsive_web_enhance_cards_enabled%22%3Afalse%7D");
|
|
44
|
+
return "https://api.twitter.com/graphql/nwlAnaw7oKXcVLi91ehy7Q/Followers?variables=%7B%22userId%22%3A%22".concat(userId, "%22%2C%22count%22%3A").concat(count, "%2C%22cursor%22%3A%22").concat(encodeURIComponent(cursor), "%22%2C%22includePromotedContent%22%3Afalse%2C%22withSuperFollowsUserFields%22%3Atrue%2C%22withDownvotePerspective%22%3Afalse%2C%22withReactionsMetadata%22%3Afalse%2C%22withReactionsPerspective%22%3Afalse%2C%22withSuperFollowsTweetFields%22%3Atrue%7D&features=%7B%22responsive_web_twitter_blue_verified_badge_is_enabled%22%3Atrue%2C%22verified_phone_label_enabled%22%3Atrue%2C%22responsive_web_graphql_timeline_navigation_enabled%22%3Atrue%2C%22view_counts_public_visibility_enabled%22%3Atrue%2C%22longform_notetweets_consumption_enabled%22%3Afalse%2C%22tweetypie_unmention_optimization_enabled%22%3Atrue%2C%22responsive_web_uc_gql_enabled%22%3Atrue%2C%22vibe_api_enabled%22%3Atrue%2C%22responsive_web_edit_tweet_api_enabled%22%3Atrue%2C%22graphql_is_translatable_rweb_tweet_is_translatable_enabled%22%3Atrue%2C%22view_counts_everywhere_api_enabled%22%3Atrue%2C%22standardized_nudges_misinfo%22%3Atrue%2C%22tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled%22%3Afalse%2C%22interactive_text_enabled%22%3Atrue%2C%22responsive_web_text_conversations_enabled%22%3Afalse%2C%22responsive_web_enhance_cards_enabled%22%3Afalse%7D");
|
|
45
45
|
}
|
|
46
46
|
exports.userFollowersUrl = userFollowersUrl;
|
|
47
47
|
/**
|
|
@@ -51,7 +51,7 @@ exports.userFollowersUrl = userFollowersUrl;
|
|
|
51
51
|
* @param cursor The cusor to next batch
|
|
52
52
|
*/
|
|
53
53
|
function userLikesUrl(userId, count, cursor) {
|
|
54
|
-
return "https://api.twitter.com/graphql/gP4ZKghLd4tpILgS6VudAQ/Likes?variables=%7B%22userId%22%3A%22".concat(userId, "%22%2C%22count%22%3A").concat(count, "%2C%22cursor%22%3A%22").concat(cursor, "%22%2C%22includePromotedContent%22%3Afalse%2C%22withSuperFollowsUserFields%22%3Atrue%2C%22withDownvotePerspective%22%3Afalse%2C%22withReactionsMetadata%22%3Afalse%2C%22withReactionsPerspective%22%3Afalse%2C%22withSuperFollowsTweetFields%22%3Atrue%2C%22withClientEventToken%22%3Afalse%2C%22withBirdwatchNotes%22%3Afalse%2C%22withVoice%22%3Atrue%2C%22withV2Timeline%22%3Atrue%7D&features=%7B%22responsive_web_twitter_blue_verified_badge_is_enabled%22%3Atrue%2C%22verified_phone_label_enabled%22%3Atrue%2C%22responsive_web_graphql_timeline_navigation_enabled%22%3Atrue%2C%22view_counts_public_visibility_enabled%22%3Atrue%2C%22longform_notetweets_consumption_enabled%22%3Afalse%2C%22tweetypie_unmention_optimization_enabled%22%3Atrue%2C%22responsive_web_uc_gql_enabled%22%3Atrue%2C%22vibe_api_enabled%22%3Atrue%2C%22responsive_web_edit_tweet_api_enabled%22%3Atrue%2C%22graphql_is_translatable_rweb_tweet_is_translatable_enabled%22%3Atrue%2C%22view_counts_everywhere_api_enabled%22%3Atrue%2C%22standardized_nudges_misinfo%22%3Atrue%2C%22tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled%22%3Afalse%2C%22interactive_text_enabled%22%3Atrue%2C%22responsive_web_text_conversations_enabled%22%3Afalse%2C%22responsive_web_enhance_cards_enabled%22%3Afalse%7D");
|
|
54
|
+
return "https://api.twitter.com/graphql/gP4ZKghLd4tpILgS6VudAQ/Likes?variables=%7B%22userId%22%3A%22".concat(userId, "%22%2C%22count%22%3A").concat(count, "%2C%22cursor%22%3A%22").concat(encodeURIComponent(cursor), "%22%2C%22includePromotedContent%22%3Afalse%2C%22withSuperFollowsUserFields%22%3Atrue%2C%22withDownvotePerspective%22%3Afalse%2C%22withReactionsMetadata%22%3Afalse%2C%22withReactionsPerspective%22%3Afalse%2C%22withSuperFollowsTweetFields%22%3Atrue%2C%22withClientEventToken%22%3Afalse%2C%22withBirdwatchNotes%22%3Afalse%2C%22withVoice%22%3Atrue%2C%22withV2Timeline%22%3Atrue%7D&features=%7B%22responsive_web_twitter_blue_verified_badge_is_enabled%22%3Atrue%2C%22verified_phone_label_enabled%22%3Atrue%2C%22responsive_web_graphql_timeline_navigation_enabled%22%3Atrue%2C%22view_counts_public_visibility_enabled%22%3Atrue%2C%22longform_notetweets_consumption_enabled%22%3Afalse%2C%22tweetypie_unmention_optimization_enabled%22%3Atrue%2C%22responsive_web_uc_gql_enabled%22%3Atrue%2C%22vibe_api_enabled%22%3Atrue%2C%22responsive_web_edit_tweet_api_enabled%22%3Atrue%2C%22graphql_is_translatable_rweb_tweet_is_translatable_enabled%22%3Atrue%2C%22view_counts_everywhere_api_enabled%22%3Atrue%2C%22standardized_nudges_misinfo%22%3Atrue%2C%22tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled%22%3Afalse%2C%22interactive_text_enabled%22%3Atrue%2C%22responsive_web_text_conversations_enabled%22%3Afalse%2C%22responsive_web_enhance_cards_enabled%22%3Afalse%7D");
|
|
55
55
|
}
|
|
56
56
|
exports.userLikesUrl = userLikesUrl;
|
|
57
57
|
/**
|
|
@@ -61,7 +61,7 @@ exports.userLikesUrl = userLikesUrl;
|
|
|
61
61
|
* @param cursor The cursor to next batch
|
|
62
62
|
*/
|
|
63
63
|
function userTweetsUrl(userId, count, cursor) {
|
|
64
|
-
return "https://api.twitter.com/graphql/MsEBEnQjKQCsRlAbC6qKcA/UserTweets?variables=%7B%22userId%22%3A%22".concat(userId, "%22%2C%22count%22%3A").concat(count, "%2C%22cursor%22%3A%22").concat(cursor, "%22%2C%22includePromotedContent%22%3Atrue%2C%22withQuickPromoteEligibilityTweetFields%22%3Atrue%2C%22withSuperFollowsUserFields%22%3Atrue%2C%22withDownvotePerspective%22%3Afalse%2C%22withReactionsMetadata%22%3Afalse%2C%22withReactionsPerspective%22%3Afalse%2C%22withSuperFollowsTweetFields%22%3Atrue%2C%22withVoice%22%3Atrue%2C%22withV2Timeline%22%3Atrue%7D&features=%7B%22responsive_web_twitter_blue_verified_badge_is_enabled%22%3Atrue%2C%22verified_phone_label_enabled%22%3Atrue%2C%22responsive_web_graphql_timeline_navigation_enabled%22%3Atrue%2C%22view_counts_public_visibility_enabled%22%3Atrue%2C%22longform_notetweets_consumption_enabled%22%3Afalse%2C%22tweetypie_unmention_optimization_enabled%22%3Atrue%2C%22vibe_api_enabled%22%3Atrue%2C%22responsive_web_edit_tweet_api_enabled%22%3Atrue%2C%22graphql_is_translatable_rweb_tweet_is_translatable_enabled%22%3Atrue%2C%22view_counts_everywhere_api_enabled%22%3Atrue%2C%22standardized_nudges_misinfo%22%3Atrue%2C%22tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled%22%3Afalse%2C%22interactive_text_enabled%22%3Atrue%2C%22responsive_web_text_conversations_enabled%22%3Afalse%2C%22responsive_web_enhance_cards_enabled%22%3Afalse%7D");
|
|
64
|
+
return "https://api.twitter.com/graphql/MsEBEnQjKQCsRlAbC6qKcA/UserTweets?variables=%7B%22userId%22%3A%22".concat(userId, "%22%2C%22count%22%3A").concat(count, "%2C%22cursor%22%3A%22").concat(encodeURIComponent(cursor), "%22%2C%22includePromotedContent%22%3Atrue%2C%22withQuickPromoteEligibilityTweetFields%22%3Atrue%2C%22withSuperFollowsUserFields%22%3Atrue%2C%22withDownvotePerspective%22%3Afalse%2C%22withReactionsMetadata%22%3Afalse%2C%22withReactionsPerspective%22%3Afalse%2C%22withSuperFollowsTweetFields%22%3Atrue%2C%22withVoice%22%3Atrue%2C%22withV2Timeline%22%3Atrue%7D&features=%7B%22responsive_web_twitter_blue_verified_badge_is_enabled%22%3Atrue%2C%22verified_phone_label_enabled%22%3Atrue%2C%22responsive_web_graphql_timeline_navigation_enabled%22%3Atrue%2C%22view_counts_public_visibility_enabled%22%3Atrue%2C%22longform_notetweets_consumption_enabled%22%3Afalse%2C%22tweetypie_unmention_optimization_enabled%22%3Atrue%2C%22vibe_api_enabled%22%3Atrue%2C%22responsive_web_edit_tweet_api_enabled%22%3Atrue%2C%22graphql_is_translatable_rweb_tweet_is_translatable_enabled%22%3Atrue%2C%22view_counts_everywhere_api_enabled%22%3Atrue%2C%22standardized_nudges_misinfo%22%3Atrue%2C%22tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled%22%3Afalse%2C%22interactive_text_enabled%22%3Atrue%2C%22responsive_web_text_conversations_enabled%22%3Afalse%2C%22responsive_web_enhance_cards_enabled%22%3Afalse%7D");
|
|
65
65
|
}
|
|
66
66
|
exports.userTweetsUrl = userTweetsUrl;
|
|
67
67
|
/**
|
|
@@ -71,7 +71,7 @@ exports.userTweetsUrl = userTweetsUrl;
|
|
|
71
71
|
* @param cursor The cusor to next batch *
|
|
72
72
|
*/
|
|
73
73
|
function tweetsUrl(query, count, cursor) {
|
|
74
|
-
return "https://api.twitter.com/2/search/adaptive.json?include_want_retweets=1&include_quote_count=true&include_reply_count=1&tweet_mode=extended&include_entities=true&include_user_entities=true&simple_quoted_tweet=true&q=".concat(query, "&tweet_search_mode=live&count=").concat(count, "&query_source=typed_query&cursor=").concat(cursor);
|
|
74
|
+
return "https://api.twitter.com/2/search/adaptive.json?include_want_retweets=1&include_quote_count=true&include_reply_count=1&tweet_mode=extended&include_entities=true&include_user_entities=true&simple_quoted_tweet=true&q=".concat(query, "&tweet_search_mode=live&count=").concat(count, "&query_source=typed_query&cursor=").concat(encodeURIComponent(cursor));
|
|
75
75
|
}
|
|
76
76
|
exports.tweetsUrl = tweetsUrl;
|
|
77
77
|
/**
|
|
@@ -88,7 +88,7 @@ exports.tweetDetailsUrl = tweetDetailsUrl;
|
|
|
88
88
|
* @param cursor The curor to next batch
|
|
89
89
|
*/
|
|
90
90
|
function tweetRepliesUrl(tweetId, cursor) {
|
|
91
|
-
return "https://api.twitter.com/graphql/lXI2kaM2hgmbf7h42kpxuA/TweetDetail?variables=%7B%22focalTweetId%22%3A%22".concat(tweetId, "%22%2C%22cursor%22%3A%22").concat(cursor, "%22%2C%22referrer%22%3A%22tweet%22%2C%22with_rux_injections%22%3Afalse%2C%22includePromotedContent%22%3Atrue%2C%22withCommunity%22%3Atrue%2C%22withQuickPromoteEligibilityTweetFields%22%3Atrue%2C%22withBirdwatchNotes%22%3Atrue%2C%22withSuperFollowsUserFields%22%3Atrue%2C%22withDownvotePerspective%22%3Afalse%2C%22withReactionsMetadata%22%3Afalse%2C%22withReactionsPerspective%22%3Afalse%2C%22withSuperFollowsTweetFields%22%3Atrue%2C%22withVoice%22%3Atrue%2C%22withV2Timeline%22%3Atrue%7D&features=%7B%22responsive_web_twitter_blue_verified_badge_is_enabled%22%3Atrue%2C%22verified_phone_label_enabled%22%3Atrue%2C%22responsive_web_graphql_timeline_navigation_enabled%22%3Atrue%2C%22view_counts_public_visibility_enabled%22%3Atrue%2C%22longform_notetweets_consumption_enabled%22%3Afalse%2C%22tweetypie_unmention_optimization_enabled%22%3Atrue%2C%22responsive_web_uc_gql_enabled%22%3Atrue%2C%22vibe_api_enabled%22%3Atrue%2C%22responsive_web_edit_tweet_api_enabled%22%3Atrue%2C%22graphql_is_translatable_rweb_tweet_is_translatable_enabled%22%3Atrue%2C%22view_counts_everywhere_api_enabled%22%3Atrue%2C%22standardized_nudges_misinfo%22%3Atrue%2C%22tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled%22%3Afalse%2C%22interactive_text_enabled%22%3Atrue%2C%22responsive_web_text_conversations_enabled%22%3Afalse%2C%22responsive_web_enhance_cards_enabled%22%3Afalse%7D");
|
|
91
|
+
return "https://api.twitter.com/graphql/lXI2kaM2hgmbf7h42kpxuA/TweetDetail?variables=%7B%22focalTweetId%22%3A%22".concat(tweetId, "%22%2C%22cursor%22%3A%22").concat(encodeURIComponent(cursor), "%22%2C%22referrer%22%3A%22tweet%22%2C%22with_rux_injections%22%3Afalse%2C%22includePromotedContent%22%3Atrue%2C%22withCommunity%22%3Atrue%2C%22withQuickPromoteEligibilityTweetFields%22%3Atrue%2C%22withBirdwatchNotes%22%3Atrue%2C%22withSuperFollowsUserFields%22%3Atrue%2C%22withDownvotePerspective%22%3Afalse%2C%22withReactionsMetadata%22%3Afalse%2C%22withReactionsPerspective%22%3Afalse%2C%22withSuperFollowsTweetFields%22%3Atrue%2C%22withVoice%22%3Atrue%2C%22withV2Timeline%22%3Atrue%7D&features=%7B%22responsive_web_twitter_blue_verified_badge_is_enabled%22%3Atrue%2C%22verified_phone_label_enabled%22%3Atrue%2C%22responsive_web_graphql_timeline_navigation_enabled%22%3Atrue%2C%22view_counts_public_visibility_enabled%22%3Atrue%2C%22longform_notetweets_consumption_enabled%22%3Afalse%2C%22tweetypie_unmention_optimization_enabled%22%3Atrue%2C%22responsive_web_uc_gql_enabled%22%3Atrue%2C%22vibe_api_enabled%22%3Atrue%2C%22responsive_web_edit_tweet_api_enabled%22%3Atrue%2C%22graphql_is_translatable_rweb_tweet_is_translatable_enabled%22%3Atrue%2C%22view_counts_everywhere_api_enabled%22%3Atrue%2C%22standardized_nudges_misinfo%22%3Atrue%2C%22tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled%22%3Afalse%2C%22interactive_text_enabled%22%3Atrue%2C%22responsive_web_text_conversations_enabled%22%3Afalse%2C%22responsive_web_enhance_cards_enabled%22%3Afalse%7D");
|
|
92
92
|
}
|
|
93
93
|
exports.tweetRepliesUrl = tweetRepliesUrl;
|
|
94
94
|
/**
|
|
@@ -98,7 +98,7 @@ exports.tweetRepliesUrl = tweetRepliesUrl;
|
|
|
98
98
|
* @param cursor The curor to next batch
|
|
99
99
|
*/
|
|
100
100
|
function tweetLikesUrl(tweetId, count, cursor) {
|
|
101
|
-
return "https://api.twitter.com/graphql/56ZwFC3Vui31fF8IYX8EGA/Favoriters?variables=%7B%22tweetId%22%3A%22".concat(tweetId, "%22%2C%22count%22%3A").concat(count, "%2C%22cursor%22%3A%22").concat(cursor, "%22%2C%22includePromotedContent%22%3Atrue%2C%22withSuperFollowsUserFields%22%3Atrue%2C%22withDownvotePerspective%22%3Afalse%2C%22withReactionsMetadata%22%3Afalse%2C%22withReactionsPerspective%22%3Afalse%2C%22withSuperFollowsTweetFields%22%3Atrue%7D&features=%7B%22responsive_web_twitter_blue_verified_badge_is_enabled%22%3Atrue%2C%22verified_phone_label_enabled%22%3Atrue%2C%22responsive_web_graphql_timeline_navigation_enabled%22%3Atrue%2C%22view_counts_public_visibility_enabled%22%3Atrue%2C%22longform_notetweets_consumption_enabled%22%3Afalse%2C%22tweetypie_unmention_optimization_enabled%22%3Atrue%2C%22responsive_web_uc_gql_enabled%22%3Atrue%2C%22vibe_api_enabled%22%3Atrue%2C%22responsive_web_edit_tweet_api_enabled%22%3Atrue%2C%22graphql_is_translatable_rweb_tweet_is_translatable_enabled%22%3Atrue%2C%22view_counts_everywhere_api_enabled%22%3Atrue%2C%22standardized_nudges_misinfo%22%3Atrue%2C%22tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled%22%3Afalse%2C%22interactive_text_enabled%22%3Atrue%2C%22responsive_web_text_conversations_enabled%22%3Afalse%2C%22responsive_web_enhance_cards_enabled%22%3Afalse%7D");
|
|
101
|
+
return "https://api.twitter.com/graphql/56ZwFC3Vui31fF8IYX8EGA/Favoriters?variables=%7B%22tweetId%22%3A%22".concat(tweetId, "%22%2C%22count%22%3A").concat(count, "%2C%22cursor%22%3A%22").concat(encodeURIComponent(cursor), "%22%2C%22includePromotedContent%22%3Atrue%2C%22withSuperFollowsUserFields%22%3Atrue%2C%22withDownvotePerspective%22%3Afalse%2C%22withReactionsMetadata%22%3Afalse%2C%22withReactionsPerspective%22%3Afalse%2C%22withSuperFollowsTweetFields%22%3Atrue%7D&features=%7B%22responsive_web_twitter_blue_verified_badge_is_enabled%22%3Atrue%2C%22verified_phone_label_enabled%22%3Atrue%2C%22responsive_web_graphql_timeline_navigation_enabled%22%3Atrue%2C%22view_counts_public_visibility_enabled%22%3Atrue%2C%22longform_notetweets_consumption_enabled%22%3Afalse%2C%22tweetypie_unmention_optimization_enabled%22%3Atrue%2C%22responsive_web_uc_gql_enabled%22%3Atrue%2C%22vibe_api_enabled%22%3Atrue%2C%22responsive_web_edit_tweet_api_enabled%22%3Atrue%2C%22graphql_is_translatable_rweb_tweet_is_translatable_enabled%22%3Atrue%2C%22view_counts_everywhere_api_enabled%22%3Atrue%2C%22standardized_nudges_misinfo%22%3Atrue%2C%22tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled%22%3Afalse%2C%22interactive_text_enabled%22%3Atrue%2C%22responsive_web_text_conversations_enabled%22%3Afalse%2C%22responsive_web_enhance_cards_enabled%22%3Afalse%7D");
|
|
102
102
|
}
|
|
103
103
|
exports.tweetLikesUrl = tweetLikesUrl;
|
|
104
104
|
/**
|
|
@@ -108,7 +108,7 @@ exports.tweetLikesUrl = tweetLikesUrl;
|
|
|
108
108
|
* @param cursor The curor to next batch
|
|
109
109
|
*/
|
|
110
110
|
function tweetRetweetUrl(tweetId, count, cursor) {
|
|
111
|
-
return "https://api.twitter.com/graphql/Wd7DVeLqMj_JQiTL0tjJwQ/Retweeters?variables=%7B%22tweetId%22%3A%22".concat(tweetId, "%22%2C%22count%22%3A").concat(count, "%2C%22cursor%22%3A%22").concat(cursor, "%22%2C%22includePromotedContent%22%3Atrue%2C%22withSuperFollowsUserFields%22%3Atrue%2C%22withDownvotePerspective%22%3Afalse%2C%22withReactionsMetadata%22%3Afalse%2C%22withReactionsPerspective%22%3Afalse%2C%22withSuperFollowsTweetFields%22%3Atrue%7D&features=%7B%22responsive_web_twitter_blue_verified_badge_is_enabled%22%3Atrue%2C%22verified_phone_label_enabled%22%3Atrue%2C%22responsive_web_graphql_timeline_navigation_enabled%22%3Atrue%2C%22view_counts_public_visibility_enabled%22%3Atrue%2C%22longform_notetweets_consumption_enabled%22%3Afalse%2C%22tweetypie_unmention_optimization_enabled%22%3Atrue%2C%22responsive_web_uc_gql_enabled%22%3Atrue%2C%22vibe_api_enabled%22%3Atrue%2C%22responsive_web_edit_tweet_api_enabled%22%3Atrue%2C%22graphql_is_translatable_rweb_tweet_is_translatable_enabled%22%3Atrue%2C%22view_counts_everywhere_api_enabled%22%3Atrue%2C%22standardized_nudges_misinfo%22%3Atrue%2C%22tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled%22%3Afalse%2C%22interactive_text_enabled%22%3Atrue%2C%22responsive_web_text_conversations_enabled%22%3Afalse%2C%22responsive_web_enhance_cards_enabled%22%3Afalse%7D");
|
|
111
|
+
return "https://api.twitter.com/graphql/Wd7DVeLqMj_JQiTL0tjJwQ/Retweeters?variables=%7B%22tweetId%22%3A%22".concat(tweetId, "%22%2C%22count%22%3A").concat(count, "%2C%22cursor%22%3A%22").concat(encodeURIComponent(cursor), "%22%2C%22includePromotedContent%22%3Atrue%2C%22withSuperFollowsUserFields%22%3Atrue%2C%22withDownvotePerspective%22%3Afalse%2C%22withReactionsMetadata%22%3Afalse%2C%22withReactionsPerspective%22%3Afalse%2C%22withSuperFollowsTweetFields%22%3Atrue%7D&features=%7B%22responsive_web_twitter_blue_verified_badge_is_enabled%22%3Atrue%2C%22verified_phone_label_enabled%22%3Atrue%2C%22responsive_web_graphql_timeline_navigation_enabled%22%3Atrue%2C%22view_counts_public_visibility_enabled%22%3Atrue%2C%22longform_notetweets_consumption_enabled%22%3Afalse%2C%22tweetypie_unmention_optimization_enabled%22%3Atrue%2C%22responsive_web_uc_gql_enabled%22%3Atrue%2C%22vibe_api_enabled%22%3Atrue%2C%22responsive_web_edit_tweet_api_enabled%22%3Atrue%2C%22graphql_is_translatable_rweb_tweet_is_translatable_enabled%22%3Atrue%2C%22view_counts_everywhere_api_enabled%22%3Atrue%2C%22standardized_nudges_misinfo%22%3Atrue%2C%22tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled%22%3Afalse%2C%22interactive_text_enabled%22%3Atrue%2C%22responsive_web_text_conversations_enabled%22%3Afalse%2C%22responsive_web_enhance_cards_enabled%22%3Afalse%7D");
|
|
112
112
|
}
|
|
113
113
|
exports.tweetRetweetUrl = tweetRetweetUrl;
|
|
114
114
|
//# sourceMappingURL=Urls.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Urls.js","sourceRoot":"","sources":["../../../src/services/helper/Urls.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,SAAgB,aAAa;IACzB,OAAO,iDAAiD,CAAC;AAC7D,CAAC;AAFD,sCAEC;AAED;;;GAGG;AACH,SAAgB,cAAc,CAAC,UAAkB;IAC7C,OAAO,sHAA+G,UAAU,6RAA0R,CAAA;AAC9Z,CAAC;AAFD,wCAEC;AAED;;;GAGG;AACH,SAAgB,kBAAkB,CAAC,MAAc;IAC7C,OAAO,6GAAsG,MAAM,6RAA0R,CAAC;AAClZ,CAAC;AAFD,gDAEC;AAED;;;;;GAKG;AACH,SAAgB,gBAAgB,CAAC,MAAc,EAAE,KAAa,EAAE,MAAc;IAC1E,OAAO,0GAAmG,MAAM,iCAAuB,KAAK,kCAAwB,MAAM,2nCAAwnC,CAAC;
|
|
1
|
+
{"version":3,"file":"Urls.js","sourceRoot":"","sources":["../../../src/services/helper/Urls.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,SAAgB,aAAa;IACzB,OAAO,iDAAiD,CAAC;AAC7D,CAAC;AAFD,sCAEC;AAED;;;GAGG;AACH,SAAgB,cAAc,CAAC,UAAkB;IAC7C,OAAO,sHAA+G,UAAU,6RAA0R,CAAA;AAC9Z,CAAC;AAFD,wCAEC;AAED;;;GAGG;AACH,SAAgB,kBAAkB,CAAC,MAAc;IAC7C,OAAO,6G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y2CAAs2C,CAAC;AACzhD,CAAC;AAFD,0CAEC;AAED;;;;;GAKG;AACH,SAAgB,aAAa,CAAC,OAAe,EAAE,KAAa,EAAE,MAAc;IACxE,OAAO,4GAAqG,OAAO,iCAAuB,KAAK,kCAAwB,kBAAkB,CAAC,MAAM,CAAC,0nCAAunC,CAAC;AAC7zC,CAAC;AAFD,sCAEC;AAED;;;;;GAKG;AACH,SAAgB,eAAe,CAAC,OAAe,EAAE,KAAa,EAAE,MAAc;IAC1E,OAAO,4GAAqG,OAAO,iCAAuB,KAAK,kCAAwB,kBAAkB,CAAC,MAAM,CAAC,0nCAAunC,CAAC;AAC7zC,CAAC;AAFD,0CAEC"}
|
package/dist/types/Service.d.ts
CHANGED
|
@@ -15,8 +15,9 @@ export declare class Cursor {
|
|
|
15
15
|
* @summary Stores cursored data that is returned by services
|
|
16
16
|
*/
|
|
17
17
|
export interface CursoredData<Type> {
|
|
18
|
-
list
|
|
19
|
-
next
|
|
18
|
+
list?: Type[];
|
|
19
|
+
next?: Cursor;
|
|
20
|
+
error?: Error;
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
22
23
|
* @summary Stores the data context from where data is to be fetched
|
|
@@ -2,9 +2,9 @@ export default interface Root {
|
|
|
2
2
|
data: Data;
|
|
3
3
|
}
|
|
4
4
|
export interface Data {
|
|
5
|
-
|
|
5
|
+
threaded_conversation_with_injections_v2: ThreadedConversationWithInjections_v2;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface ThreadedConversationWithInjections_v2 {
|
|
8
8
|
instructions: Instruction[];
|
|
9
9
|
metadata: Metadata;
|
|
10
10
|
}
|
package/package.json
CHANGED
|
@@ -55,7 +55,7 @@ export default class TweetResolver extends ResolverBase {
|
|
|
55
55
|
const res = await this.context.tweets.getTweets(filter, count, next.value);
|
|
56
56
|
|
|
57
57
|
// If data is available
|
|
58
|
-
if (res.list
|
|
58
|
+
if (res.list?.length) {
|
|
59
59
|
// Adding fetched tweets to list of tweets
|
|
60
60
|
tweets = tweets.concat(res.list);
|
|
61
61
|
|
|
@@ -63,7 +63,7 @@ export default class TweetResolver extends ResolverBase {
|
|
|
63
63
|
total = tweets.length;
|
|
64
64
|
|
|
65
65
|
// Getting cursor to next batch
|
|
66
|
-
next = res.next;
|
|
66
|
+
next = res.next as Cursor;
|
|
67
67
|
}
|
|
68
68
|
// If no more data is available
|
|
69
69
|
else {
|
|
@@ -138,7 +138,7 @@ export default class TweetResolver extends ResolverBase {
|
|
|
138
138
|
const res = await this.context.tweets.getTweetLikers(id, count, next.value);
|
|
139
139
|
|
|
140
140
|
// If data is available
|
|
141
|
-
if (res.list
|
|
141
|
+
if (res.list?.length) {
|
|
142
142
|
// Adding fetched likers to list of likers
|
|
143
143
|
likers = likers.concat(res.list);
|
|
144
144
|
|
|
@@ -146,7 +146,7 @@ export default class TweetResolver extends ResolverBase {
|
|
|
146
146
|
total = likers.length;
|
|
147
147
|
|
|
148
148
|
// Getting cursor to next batch
|
|
149
|
-
next = res.next;
|
|
149
|
+
next = res.next as Cursor;
|
|
150
150
|
}
|
|
151
151
|
// If no more data is available
|
|
152
152
|
else {
|
|
@@ -189,7 +189,7 @@ export default class TweetResolver extends ResolverBase {
|
|
|
189
189
|
const res = await this.context.tweets.getTweetRetweeters(id, count, next.value);
|
|
190
190
|
|
|
191
191
|
// If data is available
|
|
192
|
-
if (res.list
|
|
192
|
+
if (res.list?.length) {
|
|
193
193
|
// Adding fetched retweeters to list of retweeters
|
|
194
194
|
retweeters = retweeters.concat(res.list);
|
|
195
195
|
|
|
@@ -197,7 +197,7 @@ export default class TweetResolver extends ResolverBase {
|
|
|
197
197
|
total = retweeters.length;
|
|
198
198
|
|
|
199
199
|
// Getting cursor to next batch
|
|
200
|
-
next = res.next;
|
|
200
|
+
next = res.next as Cursor;
|
|
201
201
|
}
|
|
202
202
|
// If no more data is available
|
|
203
203
|
else {
|
|
@@ -233,7 +233,7 @@ export default class TweetResolver extends ResolverBase {
|
|
|
233
233
|
const res = await this.context.tweets.getTweetReplies(id, next.value);
|
|
234
234
|
|
|
235
235
|
// If data is available
|
|
236
|
-
if (res.list
|
|
236
|
+
if (res.list?.length) {
|
|
237
237
|
// Adding fetched replies to list of replies
|
|
238
238
|
replies = replies.concat(res.list);
|
|
239
239
|
|
|
@@ -241,7 +241,7 @@ export default class TweetResolver extends ResolverBase {
|
|
|
241
241
|
total = replies.length;
|
|
242
242
|
|
|
243
243
|
// Getting cursor to next batch
|
|
244
|
-
next = res.next;
|
|
244
|
+
next = res.next as Cursor;
|
|
245
245
|
}
|
|
246
246
|
// If no more data is available
|
|
247
247
|
else {
|
|
@@ -62,7 +62,7 @@ export default class UserResolver extends ResolverBase {
|
|
|
62
62
|
const res = await this.context.users.getUserLikes(id, count, next.value);
|
|
63
63
|
|
|
64
64
|
// If data is available
|
|
65
|
-
if (res.list
|
|
65
|
+
if (res.list?.length) {
|
|
66
66
|
// Adding fetched tweets to list of tweets
|
|
67
67
|
likes = likes.concat(res.list);
|
|
68
68
|
|
|
@@ -70,7 +70,7 @@ export default class UserResolver extends ResolverBase {
|
|
|
70
70
|
total = likes.length;
|
|
71
71
|
|
|
72
72
|
// Getting cursor to next batch
|
|
73
|
-
next = res.next;
|
|
73
|
+
next = res.next as Cursor;
|
|
74
74
|
}
|
|
75
75
|
// If no more data is available
|
|
76
76
|
else {
|
|
@@ -113,7 +113,7 @@ export default class UserResolver extends ResolverBase {
|
|
|
113
113
|
const res = await this.context.users.getUserFollowers(id, count, next.value);
|
|
114
114
|
|
|
115
115
|
// If data is available
|
|
116
|
-
if (res.list
|
|
116
|
+
if (res.list?.length) {
|
|
117
117
|
// Adding fetched followers to list of followers
|
|
118
118
|
followers = followers.concat(res.list);
|
|
119
119
|
|
|
@@ -121,7 +121,7 @@ export default class UserResolver extends ResolverBase {
|
|
|
121
121
|
total = followers.length;
|
|
122
122
|
|
|
123
123
|
// Getting cursor to next batch
|
|
124
|
-
next = res.next;
|
|
124
|
+
next = res.next as Cursor;
|
|
125
125
|
}
|
|
126
126
|
// If no more data is available
|
|
127
127
|
else {
|
|
@@ -164,7 +164,7 @@ export default class UserResolver extends ResolverBase {
|
|
|
164
164
|
const res = await this.context.users.getUserFollowing(id, count, next.value);
|
|
165
165
|
|
|
166
166
|
// If data is available
|
|
167
|
-
if (res.list
|
|
167
|
+
if (res.list?.length) {
|
|
168
168
|
// Adding fetched following to list of following
|
|
169
169
|
following = following.concat(res.list);
|
|
170
170
|
|
|
@@ -172,7 +172,7 @@ export default class UserResolver extends ResolverBase {
|
|
|
172
172
|
total = following.length;
|
|
173
173
|
|
|
174
174
|
// Getting cursor to next batch
|
|
175
|
-
next = res.next;
|
|
175
|
+
next = res.next as Cursor;
|
|
176
176
|
}
|
|
177
177
|
// If no more data is available
|
|
178
178
|
else {
|
|
@@ -185,55 +185,4 @@ export default class UserResolver extends ResolverBase {
|
|
|
185
185
|
|
|
186
186
|
return following;
|
|
187
187
|
}
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* @returns The list of tweets made by the given user
|
|
191
|
-
* @param id The id of the user whose tweets are to be fetched
|
|
192
|
-
* @param count The number of tweets to fetch
|
|
193
|
-
* @param all Whether to fetch list of all tweets made by user
|
|
194
|
-
* @param cursor The cursor to the batch of tweets to fetch
|
|
195
|
-
* @param statusesCount The total number of tweets made by target user
|
|
196
|
-
*/
|
|
197
|
-
async resolveUserTweets(id: string, count: number, all: boolean, cursor: string, statusesCount: number): Promise<any> {
|
|
198
|
-
let tweets: any[] = []; // To store the list of tweets
|
|
199
|
-
let next: Cursor = new Cursor(cursor); // To store cursor to next batch
|
|
200
|
-
let total: number = 0; // To store the total number of tweets fetched
|
|
201
|
-
let batchSize: number = 20; // To store the batchsize to use
|
|
202
|
-
|
|
203
|
-
// If all tweets are to be fetched
|
|
204
|
-
count = all ? statusesCount : count;
|
|
205
|
-
|
|
206
|
-
// If required count less than batch size, setting batch size to required count
|
|
207
|
-
batchSize = (count < batchSize) ? count : batchSize;
|
|
208
|
-
|
|
209
|
-
// Repeatedly fetching data as long as total data fetched is less than requried
|
|
210
|
-
while (total < count) {
|
|
211
|
-
// If this is the last batch, change batch size to number of remaining tweets
|
|
212
|
-
batchSize = ((count - total) < batchSize) ? (count - total) : batchSize;
|
|
213
|
-
|
|
214
|
-
// Getting the data
|
|
215
|
-
const res = await this.context.users.getUserTweets(id, count, next.value);
|
|
216
|
-
|
|
217
|
-
// If data is available
|
|
218
|
-
if (res.list.length) {
|
|
219
|
-
// Adding fetched tweets to list of tweets
|
|
220
|
-
tweets = tweets.concat(res.list);
|
|
221
|
-
|
|
222
|
-
// Updating total tweets fetched
|
|
223
|
-
total = tweets.length;
|
|
224
|
-
|
|
225
|
-
// Getting cursor to next batch
|
|
226
|
-
next = res.next;
|
|
227
|
-
}
|
|
228
|
-
// If no more data is available
|
|
229
|
-
else {
|
|
230
|
-
break;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
// Adding the cursor to the end of list of data
|
|
235
|
-
tweets.push(next);
|
|
236
|
-
|
|
237
|
-
return tweets;
|
|
238
|
-
}
|
|
239
188
|
}
|
|
@@ -17,12 +17,16 @@ export class AuthService {
|
|
|
17
17
|
// MEMBER DATA
|
|
18
18
|
private authToken: string; // To store the common auth token
|
|
19
19
|
private credentials: AuthCredentials; // To store the current authentication credentials
|
|
20
|
+
public isAuthenticated: boolean; // To store whether authenticated or not
|
|
20
21
|
|
|
21
22
|
// MEMBER METHODS
|
|
22
23
|
constructor(cookie: string = '') {
|
|
23
24
|
// Reading the auth token from the config, since it's always the same
|
|
24
25
|
this.authToken = config.twitter_auth_token;
|
|
25
26
|
|
|
27
|
+
// Setting authentication status
|
|
28
|
+
this.isAuthenticated = cookie != '';
|
|
29
|
+
|
|
26
30
|
// Setting up the authenticated credentials
|
|
27
31
|
/**
|
|
28
32
|
* The following regex pattern is used to extract the csrfToken from the cookie string.
|
|
@@ -20,10 +20,12 @@ import * as Deserializers from './helper/Deserializers';
|
|
|
20
20
|
export class FetcherService {
|
|
21
21
|
// MEMBER DATA
|
|
22
22
|
private auth: AuthService; // To store the auth service instance to use for authentication
|
|
23
|
+
protected isAuthenticated: boolean; // To store whether user is authenticated or not
|
|
23
24
|
|
|
24
25
|
// MEMBER METHODS
|
|
25
26
|
constructor(auth: AuthService) {
|
|
26
27
|
this.auth = auth;
|
|
28
|
+
this.isAuthenticated = this.auth.isAuthenticated;
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
/**
|
|
@@ -43,7 +45,7 @@ export class FetcherService {
|
|
|
43
45
|
* @param url The url to fetch data from
|
|
44
46
|
* @param authenticated Whether to authenticate requests or not
|
|
45
47
|
*/
|
|
46
|
-
protected async request<DataType>(url: string, authenticated: boolean =
|
|
48
|
+
protected async request<DataType>(url: string, authenticated: boolean = true): Promise<CurlyResult<DataType>> {
|
|
47
49
|
// Fetching the data
|
|
48
50
|
let res = await curly.get(url, {
|
|
49
51
|
httpHeader: authenticated ? Headers.authorizedHeader(await this.auth.getAuthCredentials()) : Headers.guestHeader(await this.auth.getGuestCredentials()),
|
|
@@ -72,7 +72,7 @@ export class TweetService extends FetcherService {
|
|
|
72
72
|
// If data does not exist in cache
|
|
73
73
|
else {
|
|
74
74
|
// Fetching the raw data
|
|
75
|
-
let res = await this.request<RawTweet>(Urls.tweetDetailsUrl(tweetId)).then(res => res.data);
|
|
75
|
+
let res = await this.request<RawTweet>(Urls.tweetDetailsUrl(tweetId), false).then(res => res.data);
|
|
76
76
|
|
|
77
77
|
// Extracting data
|
|
78
78
|
let data = Extractors.extractTweet(res, tweetId);
|
|
@@ -94,6 +94,11 @@ export class TweetService extends FetcherService {
|
|
|
94
94
|
* @param cursor The cursor to the next batch of users. If blank, first batch is fetched
|
|
95
95
|
*/
|
|
96
96
|
async getTweetLikers(tweetId: string, count: number, cursor: string): Promise<CursoredData<User>> {
|
|
97
|
+
// If user is not authenticated, abort
|
|
98
|
+
if(!this.isAuthenticated) {
|
|
99
|
+
return { error: new Error('Cannot fetch tweet likes without authentication!') };
|
|
100
|
+
}
|
|
101
|
+
|
|
97
102
|
// Fetching the raw data
|
|
98
103
|
let res = await this.request<RawLikers>(Urls.tweetLikesUrl(tweetId, count, cursor)).then(res => res.data);
|
|
99
104
|
|
|
@@ -119,6 +124,11 @@ export class TweetService extends FetcherService {
|
|
|
119
124
|
* @param cursor The cursor to the next batch of users. If blank, first batch is fetched
|
|
120
125
|
*/
|
|
121
126
|
async getTweetRetweeters(tweetId: string, count: number, cursor: string): Promise<CursoredData<User>> {
|
|
127
|
+
// If user is not authenticated, abort
|
|
128
|
+
if(!this.isAuthenticated) {
|
|
129
|
+
return { error: new Error('Cannot fetch tweet retweeters without authentication!') };
|
|
130
|
+
}
|
|
131
|
+
|
|
122
132
|
// Fetching the raw data
|
|
123
133
|
let res = await this.request<RawRetweeters>(Urls.tweetRetweetUrl(tweetId, count, cursor)).then(res => res.data);
|
|
124
134
|
|
|
@@ -143,6 +153,11 @@ export class TweetService extends FetcherService {
|
|
|
143
153
|
* @param cursor The cursor to the next batch of replies. If blank, first batch is fetched
|
|
144
154
|
*/
|
|
145
155
|
async getTweetReplies(tweetId: string, cursor: string): Promise<CursoredData<Tweet>> {
|
|
156
|
+
// If user is not authenticated, abort
|
|
157
|
+
if(!this.isAuthenticated) {
|
|
158
|
+
return { error: new Error('Cannot fetch tweet replies without authentication!') };
|
|
159
|
+
}
|
|
160
|
+
|
|
146
161
|
// Fetching the raw data
|
|
147
162
|
let res = await this.request<RawTweet>(Urls.tweetRepliesUrl(tweetId, cursor)).then(res => res.data);
|
|
148
163
|
|
|
@@ -7,7 +7,6 @@ import { User } from '../../types/UserAccount';
|
|
|
7
7
|
import { Tweet } from '../../types/Tweet';
|
|
8
8
|
import { CursoredData } from '../../types/Service';
|
|
9
9
|
import RawUser from '../../types/raw/user/User';
|
|
10
|
-
import RawUserTweets from '../../types/raw/user/Tweets';
|
|
11
10
|
import RawUserFollowers from '../../types/raw/user/Followers';
|
|
12
11
|
import RawUserFollowing from '../../types/raw/user/Following';
|
|
13
12
|
import RawUserLikes from '../../types/raw/user/Likes';
|
|
@@ -87,6 +86,11 @@ export class UserAccountService extends FetcherService {
|
|
|
87
86
|
* @param cursor The cursor to next batch. If blank, first batch is fetched
|
|
88
87
|
*/
|
|
89
88
|
async getUserFollowing(userId: string, count: number, cursor: string): Promise<CursoredData<User>> {
|
|
89
|
+
// If user is not authenticated, abort
|
|
90
|
+
if(!this.isAuthenticated) {
|
|
91
|
+
return { error: new Error('Cannot fetch user following without authentication!') };
|
|
92
|
+
}
|
|
93
|
+
|
|
90
94
|
// Fetchin the raw data
|
|
91
95
|
let res = await this.request<RawUserFollowing>(Urls.userFollowingUrl(userId, count, cursor)).then(res => res.data);
|
|
92
96
|
|
|
@@ -112,6 +116,11 @@ export class UserAccountService extends FetcherService {
|
|
|
112
116
|
* @param cursor The cursor to next batch. If blank, first batch is fetched
|
|
113
117
|
*/
|
|
114
118
|
async getUserFollowers(userId: string, count: number, cursor: string): Promise<CursoredData<User>> {
|
|
119
|
+
// If user is not authenticated, abort
|
|
120
|
+
if(!this.isAuthenticated) {
|
|
121
|
+
return { error: new Error('Cannot fetch user followers without authentication!') };
|
|
122
|
+
}
|
|
123
|
+
|
|
115
124
|
/**
|
|
116
125
|
* When fetching list of followers, the official Twitter API seems to be fetching n + 20 followers,
|
|
117
126
|
* where n is the actual required number of followers.
|
|
@@ -142,6 +151,11 @@ export class UserAccountService extends FetcherService {
|
|
|
142
151
|
* @param cursor The cursor to next batch. If blank, first batch is fetched
|
|
143
152
|
*/
|
|
144
153
|
async getUserLikes(userId: string, count: number, cursor: string): Promise<CursoredData<Tweet>> {
|
|
154
|
+
// If user is not authenticated, abort
|
|
155
|
+
if(!this.isAuthenticated) {
|
|
156
|
+
return { error: new Error('Cannot fetch user likes without authentication!') };
|
|
157
|
+
}
|
|
158
|
+
|
|
145
159
|
// Fetching the raw data
|
|
146
160
|
let res = await this.request<RawUserLikes>(Urls.userLikesUrl(userId, count, cursor)).then(res => res.data);
|
|
147
161
|
|
|
@@ -159,29 +173,4 @@ export class UserAccountService extends FetcherService {
|
|
|
159
173
|
next: { value: data.cursor }
|
|
160
174
|
};
|
|
161
175
|
}
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* @returns The list of tweets made by the target user
|
|
165
|
-
* @param userId The rest id of the target user
|
|
166
|
-
* @param count The batch size of the list
|
|
167
|
-
* @param cursor The cursor to next batch. If blank, first batch is fetched
|
|
168
|
-
*/
|
|
169
|
-
async getUserTweets(userId: string, count: number, cursor: string): Promise<CursoredData<Tweet>> {
|
|
170
|
-
// Fetching the raw data
|
|
171
|
-
let res = await this.request<RawUserTweets>(Urls.userTweetsUrl(userId, count, cursor)).then(res => res.data);
|
|
172
|
-
|
|
173
|
-
// Extracting data
|
|
174
|
-
let data = Extractors.extractUserTweets(res);
|
|
175
|
-
|
|
176
|
-
// Caching data
|
|
177
|
-
this.cacheData(data);
|
|
178
|
-
|
|
179
|
-
// Parsing data
|
|
180
|
-
let tweets = data.required.map(item => Deserializers.toTweet(item));
|
|
181
|
-
|
|
182
|
-
return {
|
|
183
|
-
list: tweets,
|
|
184
|
-
next: { value: data.cursor }
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
176
|
};
|
|
@@ -267,7 +267,7 @@ export function extractTweet(res: RawTweet, tweetId: string): {
|
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
// Destructuring the received raw data
|
|
270
|
-
res.data.
|
|
270
|
+
res.data.threaded_conversation_with_injections_v2.instructions.filter(item => item['type'] === 'TimelineAddEntries')[0].entries?.forEach(entry => {
|
|
271
271
|
// If entry is of type tweet and tweet exists
|
|
272
272
|
if (entry.entryId.indexOf('tweet') != -1 && entry.content.itemContent?.tweet_results?.result.__typename === 'Tweet') {
|
|
273
273
|
// If this is the required tweet
|