


"""simple docstring"""







class 			UpperCamelCase_     :

	"""simple docstring"""





	def __init__(			self      :    Dict      ,      UpperCAmelCase__      :    Union[str, Any]       )	->     Dict:
						# we need a list not a string, so do something to change the type
						__SCREAMING_SNAKE_CASE						       =    arr.split(","       )




	def   UpperCAmelCase_				(			self      :    Optional[int]       )	->     Dict:
						__SCREAMING_SNAKE_CASE						       =    [int(self.array[0]       )] * len(self.array       )
						__SCREAMING_SNAKE_CASE						       =    [int(self.array[0]       )] * len(self.array       )
						for i in range(1      ,      len(self.array       )       ):
											__SCREAMING_SNAKE_CASE						       =    max(
											    int(self.array[i]       ) + sum_value[i - 1]      ,      int(self.array[i]       )       )
											__SCREAMING_SNAKE_CASE						       =    max(sum_value[i]      ,      rear[i - 1]       )
						return rear[len(self.array       ) - 1]


if __name__ == "__main__":
		a__    :							Optional[int]            =					input('''please input some numbers:''')
		a__    :							Dict            =					SubArray(whole_array)
		a__    :							Union[str, Any]            =					array.solve_sub_array()
		print(('''the results is:''', re))




"""simple docstring"""







from datetime import datetime

import requests




def        UpperCAmelCase__	(lowerCAmelCase_       ):




					'''simple docstring'''


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


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