


'''simple docstring'''


from __future__ import annotations

from typing import Any







def 			snake_case_   (  SCREAMING_SNAKE_CASE__     ):







				"""simple docstring"""





				if not postfix_notation:
								return 0

				_SCREAMING_SNAKE_CASE :       List[str]     		=      {"+", "-", "*", "/"}
				_SCREAMING_SNAKE_CASE :       list[Any]     		=      []

				for token in postfix_notation:
								if token in operations:
												_SCREAMING_SNAKE_CASE :       int     		=      stack.pop(), stack.pop()
												if token == "+":
																stack.append(a + b     )
												elif token == "-":
																stack.append(a - b     )
												elif token == "*":
																stack.append(a * b     )
												else:
																if a * b < 0 and a % b != 0:
																				stack.append(a // b + 1     )
																else:
																				stack.append(a // b     )
								else:
												stack.append(int(_lowercase     )     )

				return stack.pop()


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}.''')


