




'''simple docstring'''


from datetime import datetime

import requests
def 						snake_case_       (UpperCamelCase			:    str ):





							'''simple docstring'''


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


if __name__ == "__main__":
				_snake_case : List[Any]  				=						input('Enter Video/IGTV url: ').strip()
				_snake_case : Dict  				=						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'''


from math import pi, sqrt
def 						snake_case_       (UpperCamelCase			:    float ):





							'''simple docstring'''


							if num <= 0:
														raise ValueError('''math domain error''' )
							if num > 171.5:
														raise OverflowError('''math range error''' )
							elif num - int(UpperCamelCase ) not in (0, 0.5):
														raise NotImplementedError('''num must be an integer or a half-integer''' )
							elif num == 0.5:
														return sqrt(UpperCamelCase )
							else:
														return 1.0 if num == 1 else (num - 1) * gamma(num - 1 )
def 						snake_case_       ():





							'''simple docstring'''


							assert gamma(0.5 ) == sqrt(UpperCamelCase )
							assert gamma(1 ) == 1.0
							assert gamma(2 ) == 1.0


if __name__ == "__main__":
				from doctest import testmod

				testmod()
				_snake_case : Optional[Any]  				=						1.0
				while num:
								_snake_case : Dict  				=						float(input('Gamma of: '))
								print(F'''gamma({num}) = {gamma(num)}''')
								print('\nEnter 0 to exit...')

