


"""simple docstring"""







import csv

import tweepy

# Twitter API credentials
lowerCAmelCase__				    =       """"""
lowerCAmelCase__				    =       """"""
lowerCAmelCase__				    =       """"""
lowerCAmelCase__				    =       """"""
def  a__      (    SCREAMING_SNAKE_CASE   :   List[Any]    ):


		'''simple docstring'''







		lowerCAmelCase					:					int								=							tweepy.OAuthHandler(_UpperCAmelCase    ,				_UpperCAmelCase    )
		auth.set_access_token(_UpperCAmelCase    ,				_UpperCAmelCase    )
		lowerCAmelCase					:					Union[str, Any]								=							tweepy.API(_UpperCAmelCase    )

		# initialize a list to hold all the tweepy Tweets
		lowerCAmelCase					:					Optional[int]								=							[]

		# make initial request for most recent tweets (200 is the maximum allowed count)
		lowerCAmelCase					:					List[str]								=							api.user_timeline(screen_name=_UpperCAmelCase    ,				count=2_0_0    )

		# save most recent tweets
		alltweets.extend(_UpperCAmelCase    )

		# save the id of the oldest tweet less one
		lowerCAmelCase					:					Union[str, Any]								=							alltweets[-1].id - 1

		# keep grabbing tweets until there are no tweets left to grab
		while len(_UpperCAmelCase    ) > 0:
				print(f"""getting tweets before {oldest}"""    )

				# all subsequent requests use the max_id param to prevent duplicates
				lowerCAmelCase					:					List[Any]								=							api.user_timeline(
				    screen_name=_UpperCAmelCase    ,				count=2_0_0    ,				max_id=_UpperCAmelCase    )

				# save most recent tweets
				alltweets.extend(_UpperCAmelCase    )

				# update the id of the oldest tweet less one
				lowerCAmelCase					:					str								=							alltweets[-1].id - 1

				print(f"""...{len(_UpperCAmelCase    )} tweets downloaded so far"""    )

		# transform the tweepy tweets into a 2D array that will populate the csv
		lowerCAmelCase					:					Optional[Any]								=							[[tweet.id_str, tweet.created_at, tweet.text] for tweet in alltweets]

		# write the csv
		with open(f"""new_{screen_name}_tweets.csv"""    ,				"w"    ) as f:
				lowerCAmelCase					:					Dict								=							csv.writer(_UpperCAmelCase    )
				writer.writerow(["id", "created_at", "text"]    )
				writer.writerows(_UpperCAmelCase    )


if __name__ == "__main__":
					# pass in the username of the account you want to download
					get_all_tweets('''FirePing32''')









"""simple docstring"""







def  a__      (    SCREAMING_SNAKE_CASE   :   list[int]    ):


  '''simple docstring'''







  lowerCAmelCase					:					str								=							len(SCREAMING_SNAKE_CASE    )
  for i in range(SCREAMING_SNAKE_CASE    ):
    for j in range(i + 1    ,				SCREAMING_SNAKE_CASE    ):
      if numbers[j] < numbers[i]:
        lowerCAmelCase						,  lowerCAmelCase					:					Any								=							numbers[j], numbers[i]
  return numbers


if __name__ == "__main__":
     lowerCAmelCase__				    =       input('''Enter numbers separated by a comma:\n''').strip()
     lowerCAmelCase__				    =       [int(item) for item in user_input.split(''',''')]
     print(exchange_sort(unsorted))





