



from ..utils import DummyObject, requires_backends


class 						lowercase    (							metaclass=SCREAMING_SNAKE_CASE_):
						'''simple docstring'''


						UpperCAmelCase			:		List[str]		=		['torch', 'transformers', 'onnx']







						def __init__(  self    :				Any       ,	*snake_case    :				List[Any]       ,	**snake_case    :				Union[str, Any]	):



											'''simple docstring'''


											requires_backends(self       ,	['torch', 'transformers', 'onnx']	)







						@classmethod
						def       lowerCamelCase_				(  cls    :				int       ,	*snake_case    :				Optional[int]       ,	**snake_case    :				Dict	):



											'''simple docstring'''


											requires_backends(cls       ,	['torch', 'transformers', 'onnx']	)







						@classmethod
						def       lowerCamelCase_				(  cls    :				Union[str, Any]       ,	*snake_case    :				int       ,	**snake_case    :				Dict	):



											'''simple docstring'''


											requires_backends(cls       ,	['torch', 'transformers', 'onnx']	)


class 						lowercase    (							metaclass=SCREAMING_SNAKE_CASE_):
						'''simple docstring'''


						UpperCAmelCase			:		str		=		['torch', 'transformers', 'onnx']







						def __init__(  self    :				Optional[Any]       ,	*snake_case    :				Optional[int]       ,	**snake_case    :				Union[str, Any]	):



											'''simple docstring'''


											requires_backends(self       ,	['torch', 'transformers', 'onnx']	)







						@classmethod
						def       lowerCamelCase_				(  cls    :				int       ,	*snake_case    :				Dict       ,	**snake_case    :				Dict	):



											'''simple docstring'''


											requires_backends(cls       ,	['torch', 'transformers', 'onnx']	)







						@classmethod
						def       lowerCamelCase_				(  cls    :				List[Any]       ,	*snake_case    :				List[str]       ,	**snake_case    :				Any	):



											'''simple docstring'''


											requires_backends(cls       ,	['torch', 'transformers', 'onnx']	)


class 						lowercase    (							metaclass=SCREAMING_SNAKE_CASE_):
						'''simple docstring'''


						UpperCAmelCase			:		Optional[Any]		=		['torch', 'transformers', 'onnx']







						def __init__(  self    :				List[str]       ,	*snake_case    :				List[str]       ,	**snake_case    :				str	):



											'''simple docstring'''


											requires_backends(self       ,	['torch', 'transformers', 'onnx']	)







						@classmethod
						def       lowerCamelCase_				(  cls    :				List[str]       ,	*snake_case    :				Optional[int]       ,	**snake_case    :				Tuple	):



											'''simple docstring'''


											requires_backends(cls       ,	['torch', 'transformers', 'onnx']	)







						@classmethod
						def       lowerCamelCase_				(  cls    :				Optional[int]       ,	*snake_case    :				Optional[int]       ,	**snake_case    :				str	):



											'''simple docstring'''


											requires_backends(cls       ,	['torch', 'transformers', 'onnx']	)


class 						lowercase    (							metaclass=SCREAMING_SNAKE_CASE_):
						'''simple docstring'''


						UpperCAmelCase			:		Union[str, Any]		=		['torch', 'transformers', 'onnx']







						def __init__(  self    :				str       ,	*snake_case    :				List[str]       ,	**snake_case    :				Tuple	):



											'''simple docstring'''


											requires_backends(self       ,	['torch', 'transformers', 'onnx']	)







						@classmethod
						def       lowerCamelCase_				(  cls    :				Optional[Any]       ,	*snake_case    :				Optional[Any]       ,	**snake_case    :				Optional[int]	):



											'''simple docstring'''


											requires_backends(cls       ,	['torch', 'transformers', 'onnx']	)







						@classmethod
						def       lowerCamelCase_				(  cls    :				List[str]       ,	*snake_case    :				Any       ,	**snake_case    :				Optional[Any]	):



											'''simple docstring'''


											requires_backends(cls       ,	['torch', 'transformers', 'onnx']	)


class 						lowercase    (							metaclass=SCREAMING_SNAKE_CASE_):
						'''simple docstring'''


						UpperCAmelCase			:		str		=		['torch', 'transformers', 'onnx']







						def __init__(  self    :				Any       ,	*snake_case    :				Optional[int]       ,	**snake_case    :				Optional[Any]	):



											'''simple docstring'''


											requires_backends(self       ,	['torch', 'transformers', 'onnx']	)







						@classmethod
						def       lowerCamelCase_				(  cls    :				str       ,	*snake_case    :				Union[str, Any]       ,	**snake_case    :				Optional[int]	):



											'''simple docstring'''


											requires_backends(cls       ,	['torch', 'transformers', 'onnx']	)







						@classmethod
						def       lowerCamelCase_				(  cls    :				List[Any]       ,	*snake_case    :				Optional[int]       ,	**snake_case    :				Union[str, Any]	):



											'''simple docstring'''


											requires_backends(cls       ,	['torch', 'transformers', 'onnx']	)


class 						lowercase    (							metaclass=SCREAMING_SNAKE_CASE_):
						'''simple docstring'''


						UpperCAmelCase			:		int		=		['torch', 'transformers', 'onnx']







						def __init__(  self    :				List[str]       ,	*snake_case    :				Optional[Any]       ,	**snake_case    :				List[str]	):



											'''simple docstring'''


											requires_backends(self       ,	['torch', 'transformers', 'onnx']	)







						@classmethod
						def       lowerCamelCase_				(  cls    :				List[str]       ,	*snake_case    :				Dict       ,	**snake_case    :				Dict	):



											'''simple docstring'''


											requires_backends(cls       ,	['torch', 'transformers', 'onnx']	)







						@classmethod
						def       lowerCamelCase_				(  cls    :				Any       ,	*snake_case    :				Any       ,	**snake_case    :				str	):



											'''simple docstring'''


											requires_backends(cls       ,	['torch', 'transformers', 'onnx']	)




from datetime import datetime

import requests

def        __a			(   __lowerCAmelCase   )     ->     bytes:
					SCREAMING_SNAKE_CASE							:     int						=				'https://downloadgram.net/wp-json/wppress/video-downloader/video?url='
					SCREAMING_SNAKE_CASE							:     Any						=				requests.get(base_url + url   ).json()[0]['urls'][0]['src']
					return requests.get(__lowerCAmelCase   ).content


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