




'''simple docstring'''

from datetime import datetime

import requests


def 						__magic_name__       (      __UpperCAmelCase      )						->   int:

					'''simple docstring'''

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


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


import unittest

from accelerate import debug_launcher
from accelerate.test_utils import require_cpu, test_ops, test_script




@require_cpu
class   _UpperCamelCase (		unittest.TestCase					):


			"""simple docstring"""






			def 			_SCREAMING_SNAKE_CASE     (  self		)	->   int:

							'''simple docstring'''


							debug_launcher(test_script.main		)





			def 			_SCREAMING_SNAKE_CASE     (  self		)	->   Union[str, Any]:

							'''simple docstring'''


							debug_launcher(test_ops.main		)