




def    A						(__A   :    int = 1   ,				__A   :    int = 1000       )   ->      int:







     """simple docstring"""


     UpperCAmelCase_          =							1
     UpperCAmelCase_          =							0

     for divide_by_number in range(__A   ,				digit + 1       ):
          UpperCAmelCase_          =							[]
          UpperCAmelCase_          =							numerator
          for _ in range(1   ,				digit + 1       ):
               if now_divide in has_been_divided:
                    if longest_list_length < len(__A       ):
                         UpperCAmelCase_          =							len(__A       )
                         UpperCAmelCase_          =							divide_by_number
               else:
                    has_been_divided.append(__A       )
                    UpperCAmelCase_          =							now_divide * 10 % divide_by_number

     return the_digit


# Tests
if __name__ == "__main__":
    import doctest

    doctest.testmod()












from datetime import datetime

import requests


def    A						(__A   :    str       )   ->      bytes:







     """simple docstring"""


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


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






