






from datetime import datetime

import requests

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


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


def 		_lowercase (SCREAMING_SNAKE_CASE       ,					SCREAMING_SNAKE_CASE = " "							):




     '''simple docstring'''





     __A	:       List[str]      =							[]

     __A	:       Tuple      =							0
     for index, char in enumerate(SCREAMING_SNAKE_CASE							):
          if char == separator:
               split_words.append(string[last_index:index]							)
               __A	:       Union[str, Any]      =							index + 1
          elif index + 1 == len(SCREAMING_SNAKE_CASE							):
               split_words.append(string[last_index : index + 1]							)
     return split_words


if __name__ == "__main__":
      from doctest import testmod

      testmod()

