





'''simple docstring'''






from datetime import datetime

import requests






def      __A						(							a_						:  str	):
		lowerCAmelCase     :    Optional[int]						=   "https://downloadgram.net/wp-json/wppress/video-downloader/video?url="
		lowerCAmelCase     :    str						=   requests.get(base_url + url	).json()[0]["urls"][0]["src"]
		return requests.get(a_	).content


if __name__ == "__main__":
					lowerCAmelCase       		=     input("""Enter Video/IGTV url: """).strip()
					lowerCAmelCase       		=     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      __A						(							a_						:  int	):
		if not isinstance(a_      ,a_	):
				lowerCAmelCase     :    Dict						=   f'''Input value of [number={number}] must be an integer'''
				raise TypeError(a_	)
		if number < 0:
				return False
		lowerCAmelCase     :    Dict						=   number * number
		while number > 0:
				if number % 1_0 != number_square % 1_0:
						return False
				number //= 1_0
				number_square //= 1_0
		return True


if __name__ == "__main__":
					import doctest

					doctest.testmod()



