| 99 | |
| 100 | |
| 101 | class TwitterGuess(TwitterBase): |
| 102 | Uri = 'https://twitter.com/i/api/graphql/{}/UserTweets?' |
| 103 | |
| 104 | def get_url(self, **kwargs): |
| 105 | variables = { |
| 106 | "userId": kwargs['userId'], |
| 107 | "count": kwargs['count'] if 'conut' in kwargs else 40, |
| 108 | "includePromotedContent": "true", |
| 109 | "withQuickPromoteEligibilityTweetFields": "true", |
| 110 | "withSuperFollowsUserFields": "true", |
| 111 | "withBirdwatchPivots": "false", |
| 112 | "withDownvotePerspective": "false", |
| 113 | "withReactionsMetadata": "false", |
| 114 | "withReactionsPerspective": "false", |
| 115 | "withSuperFollowsTweetFields": "true", |
| 116 | "withVoice": "true", |
| 117 | "withV2Timeline": "false", |
| 118 | "__fs_interactive_text": "false", |
| 119 | "__fs_dont_mention_me_view_api_enabled": "false" |
| 120 | } |
| 121 | if 'cursor' in kwargs: |
| 122 | variables.update({'cursor': kwargs['cursor']}) |
| 123 | params_data = {"variables": json.dumps(variables)} |
| 124 | url = self.Uri.format(self.infos['user_tweets']) + urlencode(params_data) |
| 125 | return url |
| 126 | |
| 127 | |
| 128 | def requestUID(username): |