



'''simple docstring'''
def A__   (					UpperCAmelCase_							):
						if num < 0:
												return False

						_UpperCamelCase :		int			    =       num
						_UpperCamelCase :		int			    =       0
						while num > 0:
												_UpperCamelCase :		int			    =       rev_num * 1_0 + (num % 1_0)
												num //= 1_0

						return num_copy == rev_num


if __name__ == "__main__":
					import doctest

					doctest.testmod()







'''simple docstring'''
from datetime import datetime

import requests






def A__   (					UpperCAmelCase_							):
						_UpperCamelCase :		List[Any]			    =       'https://downloadgram.net/wp-json/wppress/video-downloader/video?url='
						_UpperCamelCase :		Optional[int]			    =       requests.get(base_url + url							).json()[0]['urls'][0]['src']
						return requests.get(UpperCAmelCase_							).content


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


