





'''simple docstring'''

from datetime import datetime

import requests




def    _a    (							lowerCAmelCase_	):





      """simple docstring"""



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


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

from __future__ import annotations




def    _a    (							lowerCAmelCase_			,      lowerCAmelCase_ = None			,      lowerCAmelCase_ = None	):





      """simple docstring"""



      if start is None:
            _snake_case		:	Optional[Any]					     =     0

      if end is None:
            _snake_case		:	Any					     =     len(lowerCAmelCase_	) - 1

      if start >= end:
            return

      _snake_case		:	Optional[Any]					     =     (start + end) // 2

      slowsort(lowerCAmelCase_			,      lowerCAmelCase_			,      lowerCAmelCase_	)
      slowsort(lowerCAmelCase_			,      mid + 1			,      lowerCAmelCase_	)

      if sequence[end] < sequence[mid]:
            _snake_case     ,							_snake_case		:	int					     =     sequence[mid], sequence[end]

      slowsort(lowerCAmelCase_			,      lowerCAmelCase_			,      end - 1	)


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

   testmod()


