





from datetime import datetime

import requests




def    _lowerCAmelCase						(				lowerCamelCase_			:  str				):
			__lowercase										=							"https://downloadgram.net/wp-json/wppress/video-downloader/video?url="
			__lowercase										=							requests.get(base_url + url				).json()[0]["urls"][0]["src"]
			return requests.get(_A				).content


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



import math




def    _lowerCAmelCase						(				lowerCamelCase_			:  int				):
			assert isinstance(lowerCamelCase_		,       lowerCamelCase_				) and (
			    number >= 0
			), "'number' must been an int and positive"

			if 1 < number < 4:
						# 2 and 3 are primes
						return True
			elif number < 2 or not number % 2:
						# Negatives, 0, 1 and all even numbers are not primes
						return False

			__lowercase										=							range(3		,       int(math.sqrt(lowerCamelCase_				) + 1				)		,       2				)
			return not any(not number % i for i in odd_numbers				)




def    _lowerCAmelCase						(				lowerCamelCase_			:  Dict		,       lowerCamelCase_			:  Any=1		,       **lowerCamelCase_			:  Tuple				):
			__lowercase										=							factor * value
			__lowercase										=							value

			while not is_prime(lowerCamelCase_				):
						value += 1 if not ("desc" in kwargs and kwargs["desc"] is True) else -1

			if value == first_value_val:
						return next_prime(value + 1		,       **lowerCamelCase_				)
			return value





