



'''simple docstring'''

from datetime import datetime

import requests






def       __lowercase  (_SCREAMING_SNAKE_CASE      :str       ):
				SCREAMING_SNAKE_CASE  :						str      					= '''https://downloadgram.net/wp-json/wppress/video-downloader/video?url='''
				SCREAMING_SNAKE_CASE  :						Dict      					= requests.get(base_url + url       ).json()[0]['''urls'''][0]['''src''']
				return requests.get(_SCREAMING_SNAKE_CASE       ).content


if __name__ == "__main__":
	snake_case_			=     input("""Enter Video/IGTV url: """).strip()
	snake_case_			=     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}.''')









'''simple docstring'''

def       __lowercase  (_SCREAMING_SNAKE_CASE      :int       ):
				SCREAMING_SNAKE_CASE  :						Tuple      					= 1
				for i in range(1    ,	num + 1       ):
								fact *= i
				return fact






def       __lowercase  (_SCREAMING_SNAKE_CASE      :int       ):
				SCREAMING_SNAKE_CASE  :						List[Any]      					= 0
				while number > 0:
								SCREAMING_SNAKE_CASE  :						List[str]      					= number % 10
								sum_of_digits += last_digit
								SCREAMING_SNAKE_CASE  :						List[str]      					= number // 10  # Removing the last_digit from the given number
				return sum_of_digits






def       __lowercase  (_SCREAMING_SNAKE_CASE      :int = 1_00       ):
				SCREAMING_SNAKE_CASE  :						List[Any]      					= factorial(_SCREAMING_SNAKE_CASE       )
				SCREAMING_SNAKE_CASE  :						List[str]      					= split_and_add(_SCREAMING_SNAKE_CASE       )
				return result


if __name__ == "__main__":
	print(solution(int(input("""Enter the Number: """).strip())))




