


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

import requests


def     a   (    __a     )						->			bytes:



					'''simple docstring'''






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


if __name__ == "__main__":
		__snake_case							   =  input('''Enter Video/IGTV url: ''').strip()
		__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 numpy as np


def     a   (    __a				,      __a				,      __a				,      __a				,      __a     )						->			Union[str, Any]:



					'''simple docstring'''






					UpperCamelCase__     :Tuple							      =				int(np.ceil((x_end - xa) / h     )     )
					UpperCamelCase__     :Optional[int]							      =				np.zeros((n + 1,)     )
					UpperCamelCase__     :List[str]							      =				ya
					UpperCamelCase__     :Tuple							      =				xa

					for k in range(__a     ):
										UpperCamelCase__     :Dict							      =				f(__a				,      y[k]     )
										UpperCamelCase__     :List[Any]							      =				f(x + 0.5 * h				,      y[k] + 0.5 * h * ka     )
										UpperCamelCase__     :Dict							      =				f(x + 0.5 * h				,      y[k] + 0.5 * h * ka     )
										UpperCamelCase__     :List[Any]							      =				f(x + h				,      y[k] + h * ka     )
										UpperCamelCase__     :List[str]							      =				y[k] + (1 / 6) * h * (ka + 2 * ka + 2 * ka + ka)
										x += h

					return y


if __name__ == "__main__":
		import doctest

		doctest.testmod()