'''simple docstring'''




from datetime import datetime

import requests






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


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








from __future__ import annotations
def 					snake_case_						(   lowerCAmelCase_				:  int				,				lowerCAmelCase_				:  int					):
							if partitions <= 0:
														raise ValueError("""partitions must be a positive number!"""					)
							if partitions > number_of_bytes:
														raise ValueError("""partitions can not > number_of_bytes!"""					)
							__lowercase					:							Dict			=   number_of_bytes // partitions
							__lowercase					:							Union[str, Any]			=   []
							for i in range(lowerCAmelCase_					):
														__lowercase					:							str			=   i * bytes_per_partition + 1
														__lowercase					:							List[Any]			=   (
														    number_of_bytes if i == partitions - 1 else (i + 1) * bytes_per_partition
														)
														allocation_list.append(F"{start_bytes}-{end_bytes}"					)
							return allocation_list


if __name__ == "__main__":
	import doctest

	doctest.testmod()