


import warnings

from ..trainer import Trainer
from ..utils import logging


__snake_case									=		logging.get_logger(__name__)



class      __lowerCamelCase       (_a		):







       def __init__(       self:      Optional[Any],A_:      List[str]=None,**A_:      Any ):






            '''simple docstring'''




            warnings.warn(
                '`SageMakerTrainer` is deprecated and will be removed in v5 of Transformers. You can use `Trainer` '
                'instead.',_snake_case,)
            super().__init__(args=_snake_case,**_snake_case )








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}.")






