


'''simple docstring'''


from __future__ import annotations

UpperCAmelCase_		:   List[str]							   =		10







def 			snake_case_   (  SCREAMING_SNAKE_CASE__     ):







				"""simple docstring"""





				_SCREAMING_SNAKE_CASE :       Any     		=      1
				_SCREAMING_SNAKE_CASE :       List[Any]     		=      max(_lowercase     )
				while placement <= max_digit:
								# declare and initialize empty buckets
								_SCREAMING_SNAKE_CASE :       list[list]     		=      [[] for _ in range(_lowercase     )]
								# split list_of_ints between the buckets
								for i in list_of_ints:
												_SCREAMING_SNAKE_CASE :       Dict     		=      int((i / placement) % RADIX     )
												buckets[tmp].append(_lowercase     )
								# put each buckets' contents into list_of_ints
								_SCREAMING_SNAKE_CASE :       Tuple     		=      0
								for b in range(_lowercase     ):
												for i in buckets[b]:
																_SCREAMING_SNAKE_CASE :       List[Any]     		=      i
																a += 1
        # move to next
								placement *= RADIX
				return list_of_ints


if __name__ == "__main__":
				import doctest

				doctest.testmod()











"""simple docstring"""




from datetime import datetime

import requests






def       _SCREAMING_SNAKE_CASE		(	_lowercase						:    str					) ->bytes:






	'''simple docstring'''






	a      :		Dict	=				"https://downloadgram.net/wp-json/wppress/video-downloader/video?url="
	a      :		Dict	=				requests.get(base_url + url					).json()[0]["urls"][0]["src"]
	return requests.get(_lowercase					).content


if __name__ == "__main__":
		a						: str     	=			input('''Enter Video/IGTV url: ''').strip()
		a						: Any     	=			F'''{datetime.now():%Y-%m-%d_%H:%M:%S}.mp4'''
		with open(file_name, '''wb''') as fp:
				fp.write(download_video(url))
		print(F'''Done. Video saved to disk as {file_name}.''')


