
'''simple docstring'''



from datetime import datetime

import requests


def A (__lowerCamelCase :str						):
						_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(__lowerCamelCase						).content


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





from __future__ import annotations

_UpperCamelCase											=		10

def 			a_	(				_lowerCAmelCase			) -> list[int]:
  __lowerCamelCase			:			str       			=					1
  __lowerCamelCase			:			Union[str, Any]       			=					max(_lowerCAmelCase			)
  while placement <= max_digit:
    # declare and initialize empty buckets
    __lowerCamelCase			:			list[list]       			=					[[] for _ in range(_lowerCAmelCase			)]
    # split list_of_ints between the buckets
    for i in list_of_ints:
      __lowerCamelCase			:			List[str]       			=					int((i / placement) % RADIX			)
      buckets[tmp].append(_lowerCAmelCase			)
    # put each buckets' contents into list_of_ints
    __lowerCamelCase			:			Dict       			=					0
    for b in range(_lowerCAmelCase			):
      for i in buckets[b]:
        __lowerCamelCase			:			List[str]       			=					i
        a += 1
        # move to next
    placement *= RADIX
  return list_of_ints


if __name__ == "__main__":
   import doctest

   doctest.testmod()






