


'''simple docstring'''



from datetime import datetime

import requests






def   lowerCamelCase							(_SCREAMING_SNAKE_CASE				:       Union[str, Any]       ):
					__a      :	List[str]    =  'https://downloadgram.net/wp-json/wppress/video-downloader/video?url='
					__a      :	Optional[Any]    =  requests.get(base_url + url       ).json()[0]['urls'][0]['src']
					return requests.get(__UpperCAmelCase       ).content


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







'''simple docstring'''



import os






def   lowerCamelCase							():
					with open(os.path.dirname(_SCREAMING_SNAKE_CASE       ) + '/p022_names.txt'       ) as file:
										__a      :	List[Any]    =  str(file.readlines()[0]       )
										__a      :	str    =  names.replace('"'						,				''       ).split(','       )

					names.sort()

					__a      :	Union[str, Any]    =  0
					__a      :	Tuple    =  0

					for i, name in enumerate(_SCREAMING_SNAKE_CASE       ):
										for letter in name:
															name_score += ord(_SCREAMING_SNAKE_CASE       ) - 64

										total_score += (i + 1) * name_score
										__a      :	Any    =  0
					return total_score


if __name__ == "__main__":
	print(solution())



